Class MoveSelectionAction
java.lang.Object
org.eclipse.nebula.widgets.nattable.selection.action.AbstractKeySelectAction
org.eclipse.nebula.widgets.nattable.selection.action.MoveSelectionAction
- All Implemented Interfaces:
IKeyAction
- Direct Known Subclasses:
PasteOrMoveSelectionAction
IKeyAction to perform selection movements on key press. By default it
will move the selection by 1 into the specified direction. It is possible to
specify an ITraversalStrategy that should be used on moving into the
given direction. This allows different traversal behavior on different key
strokes, e.g. axis cycle on up/down, table cycle on left/right.-
Constructor Summary
ConstructorsConstructorDescriptionCreate a MoveSelectionAction that executes aMoveSelectionCommandto move the selection into the given direction by 1.MoveSelectionAction(SelectionLayer.MoveDirectionEnum direction, boolean shiftMask, boolean ctrlMask) Create a MoveSelectionAction that executes aMoveSelectionCommandto move the selection into the given direction by 1.MoveSelectionAction(SelectionLayer.MoveDirectionEnum direction, ITraversalStrategy traversalStrategy) Create a MoveSelectionAction that executes aMoveSelectionCommandto move the selection into the given direction by using the givenITraversalStrategy.MoveSelectionAction(SelectionLayer.MoveDirectionEnum direction, ITraversalStrategy traversalStrategy, boolean shiftMask, boolean ctrlMask) Create a MoveSelectionAction that executes aMoveSelectionCommandto move the selection into the given direction by using the givenITraversalStrategy. -
Method Summary
Methods inherited from class org.eclipse.nebula.widgets.nattable.selection.action.AbstractKeySelectAction
getDirection, isControlMask, isShiftMask, setControlMask, setShiftMask
-
Constructor Details
-
MoveSelectionAction
Create a MoveSelectionAction that executes aMoveSelectionCommandto move the selection into the given direction by 1. Using this constructor theITraversalStrategyregistered with theMoveSelectionCommandHandlerwill be used to handle traversal.- Parameters:
direction- The direction the selection should move to.
-
MoveSelectionAction
public MoveSelectionAction(SelectionLayer.MoveDirectionEnum direction, boolean shiftMask, boolean ctrlMask) Create a MoveSelectionAction that executes aMoveSelectionCommandto move the selection into the given direction by 1. Using this constructor theITraversalStrategyregistered with theMoveSelectionCommandHandlerwill be used to handle traversal.This constructor allows to specify if key modifiers should are activated.
- Parameters:
direction- The direction the selection should move to.shiftMask- Whether the shift modifier is activated.ctrlMask- Whether the control modifier is activated.
-
MoveSelectionAction
public MoveSelectionAction(SelectionLayer.MoveDirectionEnum direction, ITraversalStrategy traversalStrategy) Create a MoveSelectionAction that executes aMoveSelectionCommandto move the selection into the given direction by using the givenITraversalStrategy.- Parameters:
direction- The direction the selection should move to.traversalStrategy- TheITraversalStrategythat should be used by moving the selection.
-
MoveSelectionAction
public MoveSelectionAction(SelectionLayer.MoveDirectionEnum direction, ITraversalStrategy traversalStrategy, boolean shiftMask, boolean ctrlMask) Create a MoveSelectionAction that executes aMoveSelectionCommandto move the selection into the given direction by using the givenITraversalStrategy.This constructor allows to specify if key modifiers should are activated.
- Parameters:
direction- The direction the selection should move to.traversalStrategy- TheITraversalStrategythat should be used by moving the selection.shiftMask- Whether the shift modifier is activated.ctrlMask- Whether the control modifier is activated.
-
-
Method Details
-
run
- Specified by:
runin interfaceIKeyAction- Overrides:
runin classAbstractKeySelectAction
-