use of org.kie.workbench.common.dmn.client.widgets.grid.model.DMNGridRow in project kie-wb-common by kiegroup.
the class MoveRowsCommandTest method addUiModelRow.
@Override
protected void addUiModelRow(final int rowIndex) {
final DMNGridRow uiRow = new DMNGridRow();
uiModel.appendRow(uiRow);
uiModel.setCellValue(rowIndex, 0, new BaseGridCellValue<>(rowIndex + 1));
uiModel.setCellValue(rowIndex, 1, new BaseGridCellValue<>("value" + rowIndex));
}
use of org.kie.workbench.common.dmn.client.widgets.grid.model.DMNGridRow in project kie-wb-common by kiegroup.
the class CommandUtilsTest method setupUiModelNullValues.
@SafeVarargs
private final void setupUiModelNullValues(final Pair<GridColumn, Function<Integer, GridCellValue>>... columns) {
Arrays.asList(columns).forEach(column -> uiModel.appendColumn(column.getK1()));
IntStream.range(0, ROW_COUNT).forEach(rowIndex -> {
uiModel.appendRow(new DMNGridRow());
});
}
Aggregations