Class MoveRowSelectionCommandHandler
java.lang.Object
org.eclipse.nebula.widgets.nattable.selection.MoveSelectionCommandHandler<MoveSelectionCommand>
org.eclipse.nebula.widgets.nattable.selection.MoveCellSelectionCommandHandler
org.eclipse.nebula.widgets.nattable.selection.MoveRowSelectionCommandHandler
- All Implemented Interfaces:
ILayerCommandHandler<MoveSelectionCommand>
Preserves the basic semantics of the cell selection. Additionally it selects
the entire row when a cell in the row is selected.
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.nattable.selection.MoveCellSelectionCommandHandler
lastSelectedCellPosition, newSelectedColumnPosition, newSelectedRowPositionFields inherited from class org.eclipse.nebula.widgets.nattable.selection.MoveSelectionCommandHandler
horizontalTraversalStrategy, selectionLayer, verticalTraversalStrategy -
Constructor Summary
ConstructorsConstructorDescriptionMoveRowSelectionCommandHandler(SelectionLayer selectionLayer) Create a MoveRowSelectionCommandHandler for the givenSelectionLayer.MoveRowSelectionCommandHandler(SelectionLayer selectionLayer, ITraversalStrategy traversalStrategy) Create a MoveRowSelectionCommandHandler for the givenSelectionLayer.MoveRowSelectionCommandHandler(SelectionLayer selectionLayer, ITraversalStrategy horizontalTraversalStrategy, ITraversalStrategy verticalTraversalStrategy) Create a MoveRowSelectionCommandHandler for the givenSelectionLayer. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidmoveLastSelectedDown(ITraversalStrategy traversalStrategy, boolean withShiftMask, boolean withControlMask) Moves the selection from the current position down.protected voidmoveLastSelectedLeft(ITraversalStrategy traversalStrategy, boolean withShiftMask, boolean withControlMask) Moves the selection from the current position to the left.protected voidmoveLastSelectedRight(ITraversalStrategy traversalStrategy, boolean withShiftMask, boolean withControlMask) Moves the selection from the current position to the right.protected voidmoveLastSelectedUp(ITraversalStrategy traversalStrategy, boolean withShiftMask, boolean withControlMask) Moves the selection from the current position up.Methods inherited from class org.eclipse.nebula.widgets.nattable.selection.MoveCellSelectionCommandHandler
createIncrementalStrategy, getCommandClass, positionMovedMethods inherited from class org.eclipse.nebula.widgets.nattable.selection.MoveSelectionCommandHandler
doCommand, getTraversalStrategy, moveSelection
-
Constructor Details
-
MoveRowSelectionCommandHandler
Create a MoveRowSelectionCommandHandler for the givenSelectionLayer. Uses theITraversalStrategy.AXIS_TRAVERSAL_STRATEGYas default strategy for selection movement.- Parameters:
selectionLayer- TheSelectionLayeron which the selection should be performed.
-
MoveRowSelectionCommandHandler
public MoveRowSelectionCommandHandler(SelectionLayer selectionLayer, ITraversalStrategy traversalStrategy) Create a MoveRowSelectionCommandHandler for the givenSelectionLayer.- Parameters:
selectionLayer- TheSelectionLayeron which the selection should be performed.traversalStrategy- The strategy that should be used for selection movements. Can not benull.
-
MoveRowSelectionCommandHandler
public MoveRowSelectionCommandHandler(SelectionLayer selectionLayer, ITraversalStrategy horizontalTraversalStrategy, ITraversalStrategy verticalTraversalStrategy) Create a MoveRowSelectionCommandHandler for the givenSelectionLayer.- Parameters:
selectionLayer- TheSelectionLayeron which the selection should be performed.horizontalTraversalStrategy- The strategy that should be used for horizontal selection movements. Can not benull.verticalTraversalStrategy- The strategy that should be used for vertical selection movements. Can not benull.
-
-
Method Details
-
moveLastSelectedLeft
protected void moveLastSelectedLeft(ITraversalStrategy traversalStrategy, boolean withShiftMask, boolean withControlMask) Description copied from class:MoveSelectionCommandHandlerMoves the selection from the current position to the left.- Overrides:
moveLastSelectedLeftin classMoveCellSelectionCommandHandler- Parameters:
traversalStrategy- the traversal strategy to determine the number of steps to move and the behavior on moving over the borderwithShiftMask- boolean flag to indicate whether the shift key modifier is enabled or notwithControlMask- boolean flag to indicate whether the control key modifier is enabled or not
-
moveLastSelectedRight
protected void moveLastSelectedRight(ITraversalStrategy traversalStrategy, boolean withShiftMask, boolean withControlMask) Description copied from class:MoveSelectionCommandHandlerMoves the selection from the current position to the right.- Overrides:
moveLastSelectedRightin classMoveCellSelectionCommandHandler- Parameters:
traversalStrategy- the traversal strategy to determine the number of steps to move and the behavior on moving over the borderwithShiftMask- boolean flag to indicate whether the shift key modifier is enabled or notwithControlMask- boolean flag to indicate whether the control key modifier is enabled or not
-
moveLastSelectedUp
protected void moveLastSelectedUp(ITraversalStrategy traversalStrategy, boolean withShiftMask, boolean withControlMask) Description copied from class:MoveSelectionCommandHandlerMoves the selection from the current position up.- Overrides:
moveLastSelectedUpin classMoveCellSelectionCommandHandler- Parameters:
traversalStrategy- the traversal strategy to determine the number of steps to move and the behavior on moving over the borderwithShiftMask- boolean flag to indicate whether the shift key modifier is enabled or notwithControlMask- boolean flag to indicate whether the control key modifier is enabled or not
-
moveLastSelectedDown
protected void moveLastSelectedDown(ITraversalStrategy traversalStrategy, boolean withShiftMask, boolean withControlMask) Description copied from class:MoveSelectionCommandHandlerMoves the selection from the current position down.- Overrides:
moveLastSelectedDownin classMoveCellSelectionCommandHandler- Parameters:
traversalStrategy- the traversal strategy to determine the number of steps to move and the behavior on moving over the borderwithShiftMask- boolean flag to indicate whether the shift key modifier is enabled or notwithControlMask- boolean flag to indicate whether the control key modifier is enabled or not
-