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 org.uberfire.ext.wires.core.grids.client.model.GridCellEditAction |
getSupportedEditActionLocal(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 |
isEditableHeaderLocal(org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> scenarioGridColumn,
Integer uiHeaderRowIndex) |
protected boolean |
manageStartEditingGridCell(ScenarioGrid scenarioGrid,
Integer uiRowIndex,
Integer uiColumnIndex,
ScenarioGridColumn scenarioGridColumn)
This method check if the click happened on an writable column of a grid row.
|
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.NodeMouseEventHandlerhandleBodyCell in class org.uberfire.ext.wires.core.grids.client.widget.grid.impl.DefaultGridWidgetEditCellMouseEventHandlerprotected boolean manageStartEditingGridCell(ScenarioGrid scenarioGrid, Integer uiRowIndex, Integer uiColumnIndex, ScenarioGridColumn scenarioGridColumn)
falsescenarioGrid - uiRowIndex - uiColumnIndex - scenarioGridColumn - protected boolean isEditableHeaderLocal(org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> scenarioGridColumn,
Integer uiHeaderRowIndex)
protected org.uberfire.ext.wires.core.grids.client.model.GridCellEditAction getSupportedEditActionLocal(com.ait.lienzo.client.core.event.AbstractNodeMouseEvent event)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.