public class ScenarioSimulationGridWidgetMouseEventHandler
extends org.uberfire.ext.wires.core.grids.client.widget.grid.impl.DefaultGridWidgetEditCellMouseEventHandler
Constructor and Description |
---|
ScenarioSimulationGridWidgetMouseEventHandler() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
editSupportedLocal(org.uberfire.ext.wires.core.grids.client.model.GridCellEditAction gridCellEditAction,
com.ait.lienzo.client.core.event.AbstractNodeMouseEvent event) |
boolean |
handleBodyCell(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget,
com.ait.lienzo.client.core.types.Point2D relativeLocation,
int uiRowIndex,
int uiColumnIndex,
com.ait.lienzo.client.core.event.AbstractNodeMouseEvent event)
Checks if a
AbstractNodeMouseEvent happened within a GridCell . |
boolean |
handleHeaderCell(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget,
com.ait.lienzo.client.core.types.Point2D relativeLocation,
int uiHeaderRowIndex,
int uiHeaderColumnIndex,
com.ait.lienzo.client.core.event.AbstractNodeMouseEvent event) |
protected boolean |
startEditLocal(ScenarioGrid scenarioGrid,
int uiHeaderColumnIndex,
ScenarioGridColumn scenarioGridColumn,
int uiHeaderRowIndex,
boolean isHeader) |
onNodeMouseEvent
public ScenarioSimulationGridWidgetMouseEventHandler()
public boolean handleHeaderCell(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget, com.ait.lienzo.client.core.types.Point2D relativeLocation, int uiHeaderRowIndex, int uiHeaderColumnIndex, com.ait.lienzo.client.core.event.AbstractNodeMouseEvent event)
public boolean handleBodyCell(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget, com.ait.lienzo.client.core.types.Point2D relativeLocation, int uiRowIndex, int uiColumnIndex, com.ait.lienzo.client.core.event.AbstractNodeMouseEvent event)
AbstractNodeMouseEvent
happened within a GridCell
. If the
AbstractNodeMouseEvent
is found to have happened within a cell, the GridCell.getSupportedEditAction()
is checked to Object.equals(Object)
that for the AbstractNodeMouseEvent
. If they equal then the
GridCell
is put into "edit" mode via CellSelectionManager.startEditingCell(Point2D)
.handleBodyCell
in interface org.uberfire.ext.wires.core.grids.client.widget.grid.NodeMouseEventHandler
handleBodyCell
in class org.uberfire.ext.wires.core.grids.client.widget.grid.impl.DefaultGridWidgetEditCellMouseEventHandler
protected boolean editSupportedLocal(org.uberfire.ext.wires.core.grids.client.model.GridCellEditAction gridCellEditAction, com.ait.lienzo.client.core.event.AbstractNodeMouseEvent event)
protected boolean startEditLocal(ScenarioGrid scenarioGrid, int uiHeaderColumnIndex, ScenarioGridColumn scenarioGridColumn, int uiHeaderRowIndex, boolean isHeader)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.