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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandoCommand(ILayer targetLayer, SelectRowsCommand command) protected voidselectRows(int columnPosition, int[] rowPositions, boolean withShiftMask, boolean withControlMask, int rowPositionToMoveIntoViewport) Performs row selection based on the given informations and fires aRowSelectionEventfor the changed selection.protected voidselectRows(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:
doCommandin 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 aRowSelectionEventfor 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 aRowSelectionEventfor 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:
getCommandClassin interfaceILayerCommandHandler<SelectRowsCommand>
-
selectRows(int, int[], boolean, boolean, int)with primitive values.