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 Modifier and Type Field Description protected SelectionLayerselectionLayer
-
Constructor Summary
Constructors Constructor Description SelectRowCommandHandler(SelectionLayer selectionLayer)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleandoCommand(ILayer targetLayer, SelectRowsCommand command)Class<SelectRowsCommand>getCommandClass()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.UseselectRows(int, int[], boolean, boolean, int)with primitive values.
-
-
-
Field Detail
-
selectionLayer
protected final SelectionLayer selectionLayer
- Since:
- 1.6
-
-
Constructor Detail
-
SelectRowCommandHandler
public SelectRowCommandHandler(SelectionLayer selectionLayer)
-
-
Method Detail
-
doCommand
public boolean doCommand(ILayer targetLayer, SelectRowsCommand command)
- 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
public Class<SelectRowsCommand> getCommandClass()
- Specified by:
getCommandClassin interfaceILayerCommandHandler<SelectRowsCommand>
-
-