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
ConstructorsModifierConstructorDescriptionprotectedRowSelectionEvent(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 TypeMethodDescriptionbooleanconvertToLocal(ILayer localLayer) Convert the column/row positions carried by the event to the layer about to handle the event.intbooleanReturns if the control mask is used.booleanReturns 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:
getSelectionLayerin interfaceISelectionEvent
-
getRowPositionToMoveIntoViewport
public int getRowPositionToMoveIntoViewport() -
isWithShiftMask
public boolean isWithShiftMask()Returns if the shift mask is used.- Returns:
trueif the shift mask is used,falseotherwise.- Since:
- 1.4
-
isWithControlMask
public boolean isWithControlMask()Returns if the control mask is used.- Returns:
trueif the control mask is used,falseotherwise.- Since:
- 1.4
-
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 classRowVisualChangeEvent- Parameters:
localLayer- layer about to receive the event- Returns:
- TRUE if successfully converted, FALSE otherwise
-
cloneEvent
- Specified by:
cloneEventin interfaceILayerEvent- Returns:
- A cloned copy of the event. This cloned copy is provided to each listener.
-