public class BaseCellSelectionManager extends Object implements CellSelectionManager
| Constructor and Description |
|---|
BaseCellSelectionManager(GridWidget gridWidget) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
adjustSelection(SelectionExtension direction,
boolean isShiftKeyDown)
Adjusts an existing selection, based on the selection origin, depending on the
provided parameters.
|
protected void |
doEdit(GridBodyCellEditContext context) |
boolean |
selectCell(int uiRowIndex,
int uiColumnIndex,
boolean isShiftKeyDown,
boolean isControlKeyDown)
Handles selection of a cell by delegating selection to a @{link CellSelectionStrategy} associated
with the cell being selected.
|
boolean |
selectCell(com.ait.lienzo.client.core.types.Point2D rp,
boolean isShiftKeyDown,
boolean isControlKeyDown)
Handles selection of a cell by delegating selection to a @{link CellSelectionStrategy} associated
with the cell being selected.
|
boolean |
selectHeaderCell(int uiHeaderRowIndex,
int uiHeaderColumnIndex,
boolean isShiftKeyDown,
boolean isControlKeyDown)
Handles selection of a cell in the Header by delegating selection to a @{link HeaderCellSelectionStrategy}
associated with the header cell being selected.
|
boolean |
selectHeaderCell(com.ait.lienzo.client.core.types.Point2D rp,
boolean isShiftKeyDown,
boolean isControlKeyDown)
Handles selection of a cell in the Header by delegating selection to a @{link HeaderCellSelectionStrategy}
associated with the header cell being selected.
|
boolean |
startEditingCell(int uiRowIndex,
int uiColumnIndex)
Handles initiation of editing a cell.
|
boolean |
startEditingCell(com.ait.lienzo.client.core.types.Point2D rp)
Handles initiation of editing a cell.
|
public BaseCellSelectionManager(GridWidget gridWidget)
public boolean selectCell(com.ait.lienzo.client.core.types.Point2D rp,
boolean isShiftKeyDown,
boolean isControlKeyDown)
CellSelectionManagerselectCell in interface CellSelectionManagerrp - Canvas coordinate relative to the GridWidget.isShiftKeyDown - True if the shift key is pressed.isControlKeyDown - True if the control key is pressed.public boolean selectCell(int uiRowIndex,
int uiColumnIndex,
boolean isShiftKeyDown,
boolean isControlKeyDown)
CellSelectionManagerselectCell in interface CellSelectionManageruiRowIndex - Index of row as seen in the UIuiColumnIndex - Index of the column as seen in the UIisShiftKeyDown - True if the shift key is pressed.isControlKeyDown - True if the control key is pressed.public boolean selectHeaderCell(com.ait.lienzo.client.core.types.Point2D rp,
boolean isShiftKeyDown,
boolean isControlKeyDown)
CellSelectionManagerselectHeaderCell in interface CellSelectionManagerrp - Canvas coordinate relative to the GridWidget.isShiftKeyDown - True if the shift key is pressed.isControlKeyDown - True if the control key is pressed.public boolean selectHeaderCell(int uiHeaderRowIndex,
int uiHeaderColumnIndex,
boolean isShiftKeyDown,
boolean isControlKeyDown)
CellSelectionManagerselectHeaderCell in interface CellSelectionManageruiHeaderRowIndex - Index of row as seen in the UI. 0-based index. Top row is 0.uiHeaderColumnIndex - Index of the column as seen in the UI. 0-based index. Leftmost column is 0.isShiftKeyDown - True if the shift key is pressed.isControlKeyDown - True if the control key is pressed.public boolean adjustSelection(SelectionExtension direction, boolean isShiftKeyDown)
CellSelectionManageradjustSelection in interface CellSelectionManagerdirection - The proposed direction in which to extend the selection.isShiftKeyDown - true if the shift key is pressed.public boolean startEditingCell(com.ait.lienzo.client.core.types.Point2D rp)
CellSelectionManagerstartEditingCell in interface CellSelectionManagerrp - Canvas coordinate relative to the GridWidget.public boolean startEditingCell(int uiRowIndex,
int uiColumnIndex)
CellSelectionManagerstartEditingCell in interface CellSelectionManageruiRowIndex - Row index of cell being edited.uiColumnIndex - Column index of cell being edited.protected void doEdit(GridBodyCellEditContext context)
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.