public class DefaultGridWidgetCellSelectorMouseEventHandler extends Object implements NodeMouseEventHandler
NodeMouseEventHandler to handle selection of cells.| Modifier and Type | Field and Description |
|---|---|
protected GridSelectionManager |
selectionManager |
| Constructor and Description |
|---|
DefaultGridWidgetCellSelectorMouseEventHandler(GridSelectionManager selectionManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleBodyCell(GridWidget gridWidget,
com.ait.lienzo.client.core.types.Point2D relativeLocation,
int uiRowIndex,
int uiColumnIndex,
com.ait.lienzo.client.core.event.AbstractNodeMouseEvent event)
Select body cells.
|
boolean |
handleHeaderCell(GridWidget gridWidget,
com.ait.lienzo.client.core.types.Point2D relativeLocation,
int uiHeaderRowIndex,
int uiHeaderColumnIndex,
com.ait.lienzo.client.core.event.AbstractNodeMouseEvent event)
Select header cells.
|
boolean |
onNodeMouseEvent(GridWidget gridWidget,
com.ait.lienzo.client.core.types.Point2D relativeLocation,
Optional<Integer> uiHeaderRowIndex,
Optional<Integer> uiHeaderColumnIndex,
Optional<Integer> uiRowIndex,
Optional<Integer> uiColumnIndex,
com.ait.lienzo.client.core.event.AbstractNodeMouseEvent event)
Executes when a
NodeMouseEventHandler reacts to the AbstractNodeMouseEvent
to which the NodeMouseEventHandler has been registered. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisDNDOperationInProgressprotected GridSelectionManager selectionManager
public DefaultGridWidgetCellSelectorMouseEventHandler(GridSelectionManager selectionManager)
public boolean onNodeMouseEvent(GridWidget gridWidget, com.ait.lienzo.client.core.types.Point2D relativeLocation, Optional<Integer> uiHeaderRowIndex, Optional<Integer> uiHeaderColumnIndex, Optional<Integer> uiRowIndex, Optional<Integer> uiColumnIndex, com.ait.lienzo.client.core.event.AbstractNodeMouseEvent event)
NodeMouseEventHandlerNodeMouseEventHandler reacts to the AbstractNodeMouseEvent
to which the NodeMouseEventHandler has been registered. Note uiHeaderRowIndex,
uiHeaderColumnIndex, uiRowIndex and uiColumnIndex may be Optional.empty() if
the event did not occur over the applicable element within the GridWidget.onNodeMouseEvent in interface NodeMouseEventHandlergridWidget - The GridWidget on which the event occurred.relativeLocation - Point2D relative to the top-left of the GridWidgetuiHeaderRowIndex - Index of the Header row as seen in the UI. 0-based index. Top row is 0.uiHeaderColumnIndex - Index of the Header column as seen in the UI. 0-based index. Leftmost column is 0.uiRowIndex - Index of the Body row as seen in the UIuiColumnIndex - Index of the Body column as seen in the UIevent - The original event.public boolean handleHeaderCell(GridWidget gridWidget, com.ait.lienzo.client.core.types.Point2D relativeLocation, int uiHeaderRowIndex, int uiHeaderColumnIndex, com.ait.lienzo.client.core.event.AbstractNodeMouseEvent event)
handleHeaderCell in interface NodeMouseEventHandlergridWidget - The GridWidget on which the event occurred.relativeLocation - Point2D relative to the top-left of the GridWidgetuiHeaderRowIndex - Index of the Header row as seen in the UI. 0-based index. Top row is 0.uiHeaderColumnIndex - Index of the Header column as seen in the UI. 0-based index. Leftmost column is 0.event - The original event.public boolean handleBodyCell(GridWidget gridWidget, com.ait.lienzo.client.core.types.Point2D relativeLocation, int uiRowIndex, int uiColumnIndex, com.ait.lienzo.client.core.event.AbstractNodeMouseEvent event)
handleBodyCell in interface NodeMouseEventHandlergridWidget - The GridWidget on which the event occurred.relativeLocation - Point2D relative to the top-left of the GridWidgetuiRowIndex - Index of the Body row as seen in the UIuiColumnIndex - Index of the Body column as seen in the UIevent - The original event.Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.