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
ConstructorsModifierConstructorDescriptionprotectedCellSelectionEvent(SelectionLayer selectionLayer, int columnPosition, int rowPosition, boolean withShiftMask, boolean withControlMask) Creates aCellSelectionEventthat 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 TypeMethodDescriptionbooleanconvertToLocal(ILayer localLayer) Convert the column/row positions carried by the event to the layer about to handle the event.booleanbooleanbooleanMethods 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 aCellSelectionEventthat 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-trueif the SHIFT key was pressed.withControlMask-trueif 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-trueif the SHIFT key was pressed.withControlMask-trueif the CTRL key was pressed.forcingEntireCellIntoViewport-trueif the selected cell should be moved into the viewport,falseif not.- Since:
- 2.1
-
CellSelectionEvent
-
-
Method Details
-
getSelectionLayer
- Specified by:
getSelectionLayerin interfaceISelectionEvent
-
cloneEvent
- Specified by:
cloneEventin interfaceILayerEvent- Overrides:
cloneEventin classCellVisualChangeEvent- Returns:
- A cloned copy of the event. This cloned copy is provided to each listener.
-
isWithShiftMask
public boolean isWithShiftMask()- Returns:
trueif the SHIFT key was pressed.
-
isWithControlMask
public boolean isWithControlMask()- Returns:
trueif the CTRL key was pressed.
-
isForcingEntireCellIntoViewport
public boolean isForcingEntireCellIntoViewport()- Returns:
trueif the selected cell should be moved into the viewport,falseif not.- Since:
- 2.1
-
convertToLocal
Description copied from interface:ILayerEventConvert the column/row positions carried by the event to the layer about to handle the event.- Specified by:
convertToLocalin interfaceILayerEvent- Overrides:
convertToLocalin classCellVisualChangeEvent- Parameters:
localLayer- layer about to receive the event- Returns:
- TRUE if successfully converted, FALSE otherwise
-