Search in sources :

Example 6 with ScenarioGrid

use of org.drools.workbench.screens.scenariosimulation.client.widgets.ScenarioGrid 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 7 with ScenarioGrid

use of org.drools.workbench.screens.scenariosimulation.client.widgets.ScenarioGrid 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

ScenarioGrid (org.drools.workbench.screens.scenariosimulation.client.widgets.ScenarioGrid)7 GridData (org.uberfire.ext.wires.core.grids.client.model.GridData)3 Optional (java.util.Optional)2 SetGridCellValueEvent (org.drools.workbench.screens.scenariosimulation.client.events.SetGridCellValueEvent)2 ScenarioGridColumn (org.drools.workbench.screens.scenariosimulation.client.widgets.ScenarioGridColumn)2 GridColumn (org.uberfire.ext.wires.core.grids.client.model.GridColumn)2 GridWidget (org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget)2 AbstractNodeMouseEvent (com.ait.lienzo.client.core.event.AbstractNodeMouseEvent)1 Point2D (com.ait.lienzo.client.core.types.Point2D)1 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)1 ContextMenuEvent (com.google.gwt.event.dom.client.ContextMenuEvent)1 KeyDownEvent (com.google.gwt.event.dom.client.KeyDownEvent)1 MouseWheelEvent (com.google.gwt.event.dom.client.MouseWheelEvent)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Map (java.util.Map)1 Objects (java.util.Objects)1 Collectors (java.util.stream.Collectors)1 AbstractScesimData (org.drools.scenariosimulation.api.model.AbstractScesimData)1 AbstractScesimModel (org.drools.scenariosimulation.api.model.AbstractScesimModel)1