Class RowSelectionEvent
java.lang.Object
org.eclipse.nebula.widgets.nattable.layer.event.RowVisualChangeEvent
org.eclipse.nebula.widgets.nattable.selection.event.RowSelectionEvent
- All Implemented Interfaces:
ILayerEvent
,IVisualChangeEvent
,ISelectionEvent
-
Constructor Summary
ModifierConstructorDescriptionprotected
RowSelectionEvent
(SelectionLayer selectionLayer, int[] rowPositions, int rowPositionToMoveIntoViewport, boolean withShiftMask, boolean withControlMask) Constructor.RowSelectionEvent
(SelectionLayer selectionLayer, Collection<Integer> rowPositions, int rowPositionToMoveIntoViewport, boolean withShiftMask, boolean withControlMask) Constructor.RowSelectionEvent
(SelectionLayer selectionLayer, Range rowPositionRange, int rowPositionToMoveIntoViewport, boolean withShiftMask, boolean withControlMask) Constructor. -
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.int
boolean
Returns if the control mask is used.boolean
Returns if the shift mask is used.Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.RowVisualChangeEvent
getChangedPositionRectangles, getLayer, getRowIndexes, getRowPositionRanges, setRowPositionRanges, toString
-
Constructor Details
-
RowSelectionEvent
public RowSelectionEvent(SelectionLayer selectionLayer, Collection<Integer> rowPositions, int rowPositionToMoveIntoViewport, boolean withShiftMask, boolean withControlMask) Constructor.- Parameters:
selectionLayer
- The selection layer.rowPositions
- The positions of the rows.rowPositionToMoveIntoViewport
- The row position to move into the viewport.withShiftMask
- Boolean to determinate if the shift mask is used.withControlMask
- Boolean to determinate if the control mask is used.- Since:
- 1.4
-
RowSelectionEvent
public RowSelectionEvent(SelectionLayer selectionLayer, int[] rowPositions, int rowPositionToMoveIntoViewport, boolean withShiftMask, boolean withControlMask) Constructor.- Parameters:
selectionLayer
- The selection layer.rowPositions
- The positions of the rows.rowPositionToMoveIntoViewport
- The row position to move into the viewport.withShiftMask
- Boolean to determinate if the shift mask is used.withControlMask
- Boolean to determinate if the control mask is used.- Since:
- 2.0
-
RowSelectionEvent
public RowSelectionEvent(SelectionLayer selectionLayer, Range rowPositionRange, int rowPositionToMoveIntoViewport, boolean withShiftMask, boolean withControlMask) Constructor.- Parameters:
selectionLayer
- The selection layer.rowPositionRange
- The range of row positions that where selected.rowPositionToMoveIntoViewport
- The row position to move into the viewport.withShiftMask
- Boolean to determinate if the shift mask is used.withControlMask
- Boolean to determinate if the control mask is used.- Since:
- 1.6
-
RowSelectionEvent
-
-
Method Details
-
getSelectionLayer
- Specified by:
getSelectionLayer
in interfaceISelectionEvent
-
getRowPositionToMoveIntoViewport
public int getRowPositionToMoveIntoViewport() -
isWithShiftMask
public boolean isWithShiftMask()Returns if the shift mask is used.- Returns:
true
if the shift mask is used,false
otherwise.- Since:
- 1.4
-
isWithControlMask
public boolean isWithControlMask()Returns if the control mask is used.- Returns:
true
if the control mask is used,false
otherwise.- Since:
- 1.4
-
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 classRowVisualChangeEvent
- Parameters:
localLayer
- layer about to receive the event- Returns:
- TRUE if successfully converted, FALSE otherwise
-
cloneEvent
- Specified by:
cloneEvent
in interfaceILayerEvent
- Returns:
- A cloned copy of the event. This cloned copy is provided to each listener.
-