Class SelectRowCommandHandler
java.lang.Object
org.eclipse.nebula.widgets.nattable.selection.SelectRowCommandHandler
- All Implemented Interfaces:
ILayerCommandHandler<SelectRowsCommand>
public class SelectRowCommandHandler
extends Object
implements ILayerCommandHandler<SelectRowsCommand>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
doCommand
(ILayer targetLayer, SelectRowsCommand command) protected void
selectRows
(int columnPosition, int[] rowPositions, boolean withShiftMask, boolean withControlMask, int rowPositionToMoveIntoViewport) Performs row selection based on the given informations and fires aRowSelectionEvent
for the changed selection.protected void
selectRows
(int columnPosition, Collection<Integer> rowPositions, boolean withShiftMask, boolean withControlMask, int rowPositionToMoveIntoViewport) Deprecated.
-
Field Details
-
selectionLayer
- Since:
- 1.6
-
-
Constructor Details
-
SelectRowCommandHandler
-
-
Method Details
-
doCommand
- Specified by:
doCommand
in interfaceILayerCommandHandler<SelectRowsCommand>
- Parameters:
targetLayer
- the target layercommand
- the command- Returns:
- true if the command has been handled, false otherwise
-
selectRows
@Deprecated protected void selectRows(int columnPosition, Collection<Integer> rowPositions, boolean withShiftMask, boolean withControlMask, int rowPositionToMoveIntoViewport) Deprecated.UseselectRows(int, int[], boolean, boolean, int)
with primitive values.Performs row selection based on the given informations and fires aRowSelectionEvent
for the changed selection.- Parameters:
columnPosition
- The column position of theSelectRowsCommand
.rowPositions
- The row position of theSelectRowsCommand
.withShiftMask
- The shift mask information of theSelectRowsCommand
.withControlMask
- The control mask information of theSelectRowsCommand
.rowPositionToMoveIntoViewport
- Information which row should be moved to the viewport, transported by theSelectRowsCommand
.
-
selectRows
protected void selectRows(int columnPosition, int[] rowPositions, boolean withShiftMask, boolean withControlMask, int rowPositionToMoveIntoViewport) Performs row selection based on the given informations and fires aRowSelectionEvent
for the changed selection.- Parameters:
columnPosition
- The column position of theSelectRowsCommand
.rowPositions
- The row position of theSelectRowsCommand
.withShiftMask
- The shift mask information of theSelectRowsCommand
.withControlMask
- The control mask information of theSelectRowsCommand
.rowPositionToMoveIntoViewport
- Information which row should be moved to the viewport, transported by theSelectRowsCommand
.- Since:
- 2.0
-
getCommandClass
- Specified by:
getCommandClass
in interfaceILayerCommandHandler<SelectRowsCommand>
-
selectRows(int, int[], boolean, boolean, int)
with primitive values.