use of org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidget in project kie-wb-common by kiegroup.
the class DMNGridPanelContextMenuHandlerTest method mockGridWidget.
private GridWidget mockGridWidget() {
final GridWidget gridWidget = spy(new BaseGridWidget(new BaseGridData(false), selectionManager, pinnedModeManager, renderer) {
@Override
public Layer getLayer() {
return gridLayer;
}
});
final GridColumn gridColumn = mock(GridColumn.class);
when(gridColumn.getWidth()).thenReturn(100.0);
when(gridColumn.isVisible()).thenReturn(true);
gridWidget.getModel().appendColumn(new RowNumberColumn());
gridWidget.getModel().appendColumn(gridColumn);
gridWidget.getModel().appendRow(new BaseGridRow());
gridWidget.getModel().appendRow(new BaseGridRow());
return gridWidget;
}
use of org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidget in project kie-wb-common by kiegroup.
the class ExpressionEditorColumnTest method setUp.
@Before
public void setUp() throws Exception {
gridData = new BaseGridData();
widget = new BaseGridWidget(gridData, selectionManager, pinnedModeManager, renderer);
column = new ExpressionEditorColumn(gridLayer, new BaseHeaderMetaData("column header"), widget);
}
use of org.uberfire.ext.wires.core.grids.client.widget.grid.impl.BaseGridWidget in project kie-wb-common by kiegroup.
the class CommandUtilsTest method setUp.
@Before
public void setUp() throws Exception {
decisionRuleOne = new DecisionRule();
decisionRuleTwo = new DecisionRule();
decisionRuleThree = new DecisionRule();
decisionRuleOne.setId(new Id("1"));
decisionRuleTwo.setId(new Id("2"));
decisionRuleThree.setId(new Id("3"));
allRows.clear();
allRows.add(decisionRuleOne);
allRows.add(decisionRuleTwo);
allRows.add(decisionRuleThree);
rowsToMove.clear();
uiModel = new DMNGridData();
gridWidget = new BaseGridWidget(uiModel, selectionManager, pinnedModeManager, renderer);
}
Aggregations