use of org.drools.workbench.screens.scenariosimulation.client.events.SetGridCellValueEvent in project drools-wb by kiegroup.
the class ScenarioSimulationEventHandlerTest method onSetGridCellValueEvent.
@Test
public void onSetGridCellValueEvent() {
SetGridCellValueEvent event = new SetGridCellValueEvent(GridWidget.SIMULATION, ROW_INDEX, COLUMN_INDEX, MULTIPART_VALUE);
scenarioSimulationEventHandler.onEvent(event);
verify(scenarioSimulationEventHandler).commonExecution(isA(SetGridCellValueCommand.class), eq(false));
}
use of org.drools.workbench.screens.scenariosimulation.client.events.SetGridCellValueEvent in project drools-wb by kiegroup.
the class CollectionEditorDOMElement method internalFlush.
protected void internalFlush(final String value) {
final int rowIndex = context.getRowIndex();
final int columnIndex = context.getColumnIndex();
((ScenarioGrid) gridWidget).getEventBus().fireEvent(new SetGridCellValueEvent(((ScenarioGrid) gridWidget).getGridWidget(), rowIndex, columnIndex, value));
}
use of org.drools.workbench.screens.scenariosimulation.client.events.SetGridCellValueEvent in project drools-wb by kiegroup.
the class ScenarioCellTextAreaDOMElement method internalFlush.
protected void internalFlush(final String value) {
final int rowIndex = context.getRowIndex();
final int columnIndex = context.getColumnIndex();
((ScenarioGrid) gridWidget).getEventBus().fireEvent(new SetGridCellValueEvent(((ScenarioGrid) gridWidget).getGridWidget(), rowIndex, columnIndex, value));
}
Aggregations