Class PasteOrMoveSelectionAction
java.lang.Object
org.eclipse.nebula.widgets.nattable.selection.action.AbstractKeySelectAction
org.eclipse.nebula.widgets.nattable.selection.action.MoveSelectionAction
org.eclipse.nebula.widgets.nattable.copy.action.PasteOrMoveSelectionAction
- All Implemented Interfaces:
IKeyAction
Action implementation that performs a
PasteDataCommand if there are
values in the InternalCellClipboard, otherwise it performs a
selection movement.- Since:
- 1.4
-
Constructor Summary
ConstructorsConstructorDescriptionPasteOrMoveSelectionAction(InternalCellClipboard clipboard) Creates the action withSelectionLayer.MoveDirectionEnum.DOWNPasteOrMoveSelectionAction(InternalCellClipboard clipboard, SelectionLayer.MoveDirectionEnum direction) Creates the action with the givenSelectionLayer.MoveDirectionEnum. -
Method Summary
Methods inherited from class org.eclipse.nebula.widgets.nattable.selection.action.AbstractKeySelectAction
getDirection, isControlMask, isShiftMask, setControlMask, setShiftMask
-
Constructor Details
-
PasteOrMoveSelectionAction
Creates the action withSelectionLayer.MoveDirectionEnum.DOWN- Parameters:
clipboard- The clipboard that is used to check if a paste operation should be performed.
-
PasteOrMoveSelectionAction
public PasteOrMoveSelectionAction(InternalCellClipboard clipboard, SelectionLayer.MoveDirectionEnum direction) Creates the action with the givenSelectionLayer.MoveDirectionEnum.- Parameters:
clipboard- The clipboard that is used to check if a paste operation should be performed.direction- The direction to move if no paste operation is performed.
-
-
Method Details
-
run
- Specified by:
runin interfaceIKeyAction- Overrides:
runin classMoveSelectionAction
-