use of org.kie.workbench.common.widgets.decoratedgrid.client.widget.events.UpdateColumnDataEvent in project drools-wb by kiegroup.
the class ModelSynchronizerImpl method fireUpdateColumnDataEvent.
protected void fireUpdateColumnDataEvent() {
final List<CellValue<? extends Comparable<?>>> columnData = new ArrayList<CellValue<? extends Comparable<?>>>();
for (int rowIndex = 0; rowIndex < model.getData().size(); rowIndex++) {
columnData.add(null);
}
final UpdateColumnDataEvent event = new UpdateColumnDataEvent(0, columnData);
eventBus.fireEvent(event);
}
use of org.kie.workbench.common.widgets.decoratedgrid.client.widget.events.UpdateColumnDataEvent in project drools-wb by kiegroup.
the class AnalyzerControllerImplTest method updateColumns.
@Test
public void updateColumns() throws Exception {
final ArrayList<CellValue<? extends Comparable<?>>> columnData = new ArrayList<>();
columnData.add(mock(CellValue.class));
controller.onUpdateColumnData(new UpdateColumnDataEvent(10, columnData));
verify(analyzer).updateColumns(1);
}
Aggregations