use of org.kie.workbench.common.dmn.client.widgets.grid.model.DMNGridRow in project kie-wb-common by kiegroup.
the class FunctionGrid method initialiseUiModel.
@Override
protected void initialiseUiModel() {
expression.ifPresent(e -> {
model.appendRow(new DMNGridRow());
uiModelMapper.fromDMNModel(0, 0);
});
}
use of org.kie.workbench.common.dmn.client.widgets.grid.model.DMNGridRow in project kie-wb-common by kiegroup.
the class FunctionSupplementaryGrid method initialiseUiModel.
@Override
public void initialiseUiModel() {
expression.ifPresent(c -> {
c.getContextEntry().stream().forEach(ce -> {
model.appendRow(new DMNGridRow());
uiModelMapper.fromDMNModel(model.getRowCount() - 1, 0);
uiModelMapper.fromDMNModel(model.getRowCount() - 1, 1);
uiModelMapper.fromDMNModel(model.getRowCount() - 1, 2);
});
});
}
use of org.kie.workbench.common.dmn.client.widgets.grid.model.DMNGridRow in project kie-wb-common by kiegroup.
the class LiteralExpressionGrid method initialiseUiModel.
@Override
protected void initialiseUiModel() {
expression.ifPresent(e -> {
model.appendRow(new DMNGridRow());
uiModelMapper.fromDMNModel(0, 0);
});
}
use of org.kie.workbench.common.dmn.client.widgets.grid.model.DMNGridRow in project kie-wb-common by kiegroup.
the class RelationGrid method initialiseUiModel.
@Override
public void initialiseUiModel() {
expression.ifPresent(e -> {
e.getRow().forEach(r -> {
int columnIndex = 0;
model.appendRow(new DMNGridRow());
uiModelMapper.fromDMNModel(model.getRowCount() - 1, columnIndex++);
for (int ii = 0; ii < e.getColumn().size(); ii++) {
uiModelMapper.fromDMNModel(model.getRowCount() - 1, columnIndex++);
}
});
});
}
use of org.kie.workbench.common.dmn.client.widgets.grid.model.DMNGridRow in project kie-wb-common by kiegroup.
the class UndefinedExpressionGrid method initialiseUiModel.
@Override
protected void initialiseUiModel() {
model.appendRow(new DMNGridRow());
uiModelMapper.fromDMNModel(0, 0);
}
Aggregations