Class CellSelectionEvent
java.lang.Object
org.eclipse.nebula.widgets.nattable.layer.event.CellVisualChangeEvent
org.eclipse.nebula.widgets.nattable.selection.event.CellSelectionEvent
- All Implemented Interfaces:
ILayerEvent
,IVisualChangeEvent
,ISelectionEvent
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.nattable.layer.event.CellVisualChangeEvent
columnPosition, layer, rowPosition
-
Constructor Summary
ModifierConstructorDescriptionprotected
CellSelectionEvent
(SelectionLayer selectionLayer, int columnPosition, int rowPosition, boolean withShiftMask, boolean withControlMask) Creates aCellSelectionEvent
that will move a selected cell into the viewport if it is currently not visible.CellSelectionEvent
(SelectionLayer selectionLayer, int columnPosition, int rowPosition, boolean withShiftMask, boolean withControlMask, boolean forcingEntireCellIntoViewport) Creates aCellSelectionEvent
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
convertToLocal
(ILayer localLayer) Convert the column/row positions carried by the event to the layer about to handle the event.boolean
boolean
boolean
Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.CellVisualChangeEvent
getChangedPositionRectangles, getColumnPosition, getLayer, getRowPosition
-
Constructor Details
-
CellSelectionEvent
public CellSelectionEvent(SelectionLayer selectionLayer, int columnPosition, int rowPosition, boolean withShiftMask, boolean withControlMask) Creates aCellSelectionEvent
that will move a selected cell into the viewport if it is currently not visible.- Parameters:
selectionLayer
- TheSelectionLayer
.columnPosition
- The column position of the selected cell.rowPosition
- The row position of the selected cell.withShiftMask
-true
if the SHIFT key was pressed.withControlMask
-true
if the CTRL key was pressed.
-
CellSelectionEvent
public CellSelectionEvent(SelectionLayer selectionLayer, int columnPosition, int rowPosition, boolean withShiftMask, boolean withControlMask, boolean forcingEntireCellIntoViewport) Creates aCellSelectionEvent
.- Parameters:
selectionLayer
- TheSelectionLayer
.columnPosition
- The column position of the selected cell.rowPosition
- The row position of the selected cell.withShiftMask
-true
if the SHIFT key was pressed.withControlMask
-true
if the CTRL key was pressed.forcingEntireCellIntoViewport
-true
if the selected cell should be moved into the viewport,false
if not.- Since:
- 2.1
-
CellSelectionEvent
-
-
Method Details
-
getSelectionLayer
- Specified by:
getSelectionLayer
in interfaceISelectionEvent
-
cloneEvent
- Specified by:
cloneEvent
in interfaceILayerEvent
- Overrides:
cloneEvent
in classCellVisualChangeEvent
- Returns:
- A cloned copy of the event. This cloned copy is provided to each listener.
-
isWithShiftMask
public boolean isWithShiftMask()- Returns:
true
if the SHIFT key was pressed.
-
isWithControlMask
public boolean isWithControlMask()- Returns:
true
if the CTRL key was pressed.
-
isForcingEntireCellIntoViewport
public boolean isForcingEntireCellIntoViewport()- Returns:
true
if the selected cell should be moved into the viewport,false
if not.- Since:
- 2.1
-
convertToLocal
Description copied from interface:ILayerEvent
Convert the column/row positions carried by the event to the layer about to handle the event.- Specified by:
convertToLocal
in interfaceILayerEvent
- Overrides:
convertToLocal
in classCellVisualChangeEvent
- Parameters:
localLayer
- layer about to receive the event- Returns:
- TRUE if successfully converted, FALSE otherwise
-