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
public class PasteOrMoveSelectionAction extends MoveSelectionAction
Action implementation that performs aPasteDataCommand
if there are values in theInternalCellClipboard
, otherwise it performs a selection movement.- Since:
- 1.4
-
-
Constructor Summary
Constructors Constructor Description PasteOrMoveSelectionAction(InternalCellClipboard clipboard)
Creates the action withSelectionLayer.MoveDirectionEnum.DOWN
PasteOrMoveSelectionAction(InternalCellClipboard clipboard, SelectionLayer.MoveDirectionEnum direction)
Creates the action with the givenSelectionLayer.MoveDirectionEnum
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(NatTable natTable, org.eclipse.swt.events.KeyEvent event)
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.selection.action.AbstractKeySelectAction
getDirection, isControlMask, isShiftMask, setControlMask, setShiftMask
-
-
-
-
Constructor Detail
-
PasteOrMoveSelectionAction
public PasteOrMoveSelectionAction(InternalCellClipboard clipboard)
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 Detail
-
run
public void run(NatTable natTable, org.eclipse.swt.events.KeyEvent event)
- Specified by:
run
in interfaceIKeyAction
- Overrides:
run
in classMoveSelectionAction
-
-