use of org.kie.workbench.common.dmn.client.widgets.grid.model.LiteralExpressionGridRow in project kie-wb-common by kiegroup.
the class DecisionTableGrid method addDecisionRule.
void addDecisionRule(final int index) {
getExpression().get().ifPresent(dtable -> {
final GridRow decisionTableRow = new LiteralExpressionGridRow();
final DecisionRule decisionRule = DecisionRuleFactory.makeDecisionRule(dtable);
sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new AddDecisionRuleCommand(dtable, decisionRule, model, decisionTableRow, index, uiModelMapper, () -> resize(BaseExpressionGrid.RESIZE_EXISTING)));
});
}
use of org.kie.workbench.common.dmn.client.widgets.grid.model.LiteralExpressionGridRow in project kie-wb-common by kiegroup.
the class RelationGrid method addRow.
void addRow(final int index) {
getExpression().get().ifPresent(relation -> {
final GridRow relationRow = new LiteralExpressionGridRow();
sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new AddRelationRowCommand(relation, new List(), model, relationRow, index, uiModelMapper, () -> resize(BaseExpressionGrid.RESIZE_EXISTING)));
});
}
use of org.kie.workbench.common.dmn.client.widgets.grid.model.LiteralExpressionGridRow in project kie-wb-common by kiegroup.
the class DecisionTableGrid method duplicateDecisionRule.
void duplicateDecisionRule(final int index) {
getExpression().get().ifPresent(dtable -> {
final GridRow decisionTableRow = new LiteralExpressionGridRow();
final DecisionRule decisionRule = DecisionRuleFactory.duplicateDecisionRule(index, dtable);
sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new AddDecisionRuleCommand(dtable, decisionRule, model, decisionTableRow, index, uiModelMapper, () -> resize(BaseExpressionGrid.RESIZE_EXISTING)));
});
}
Aggregations