Search in sources :

Example 1 with SetGridCellValueEvent

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));
}
Also used : SetGridCellValueEvent(org.drools.workbench.screens.scenariosimulation.client.events.SetGridCellValueEvent) SetGridCellValueCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.SetGridCellValueCommand) Test(org.junit.Test) AbstractScenarioSimulationTest(org.drools.workbench.screens.scenariosimulation.client.AbstractScenarioSimulationTest)

Example 2 with SetGridCellValueEvent

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));
}
Also used : SetGridCellValueEvent(org.drools.workbench.screens.scenariosimulation.client.events.SetGridCellValueEvent) ScenarioGrid(org.drools.workbench.screens.scenariosimulation.client.widgets.ScenarioGrid)

Example 3 with SetGridCellValueEvent

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));
}
Also used : SetGridCellValueEvent(org.drools.workbench.screens.scenariosimulation.client.events.SetGridCellValueEvent) ScenarioGrid(org.drools.workbench.screens.scenariosimulation.client.widgets.ScenarioGrid)

Aggregations

SetGridCellValueEvent (org.drools.workbench.screens.scenariosimulation.client.events.SetGridCellValueEvent)3 ScenarioGrid (org.drools.workbench.screens.scenariosimulation.client.widgets.ScenarioGrid)2 AbstractScenarioSimulationTest (org.drools.workbench.screens.scenariosimulation.client.AbstractScenarioSimulationTest)1 SetGridCellValueCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.SetGridCellValueCommand)1 Test (org.junit.Test)1