Class FillHandleColumnAction
java.lang.Object
org.eclipse.nebula.widgets.nattable.fillhandle.action.FillHandleColumnAction
- All Implemented Interfaces:
IMouseAction
- Direct Known Subclasses:
FormulaFillHandleColumnAction
IMouseAction that can be registered on double clicks on the fill
handle to trigger an automatic fill operation for the whole column.- Since:
- 2.5
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InternalCellClipboardprotected org.eclipse.swt.widgets.Menuprotected SelectionLayer -
Constructor Summary
ConstructorsConstructorDescriptionFillHandleColumnAction(SelectionLayer selectionLayer, InternalCellClipboard clipboard) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidOpens a menu that enables a user to select whether values should simply be copied or if a series should be filled.protected voidReset the fill handle region in theSelectionLayer, clear the clipboard and redraw the given NatTable.voidTranslates the SWT MouseEvent to a NatTable command and executes that command accordingly.protected booleanCheck if the menu should be shown for selecting copy or series fill operation.
-
Field Details
-
selectionLayer
-
clipboard
-
-
Constructor Details
-
FillHandleColumnAction
- Parameters:
selectionLayer- TheSelectionLayerneeded to determine the fill handle region and perform the update command.clipboard- The internal clipboard that carries the cells for the copy & paste operation triggered by using the fill handle.
-
-
Method Details
-
run
Description copied from interface:IMouseActionTranslates the SWT MouseEvent to a NatTable command and executes that command accordingly.- Specified by:
runin interfaceIMouseAction- Parameters:
natTable- The NatTable instance on which the MouseEvent was fired and on which the command should be executed.event- The received MouseEvent.
-
showMenu
Check if the menu should be shown for selecting copy or series fill operation.- Parameters:
natTable- The NatTable instance on which the operation is performed.- Returns:
trueif the menu should be shown,falseif not.
-
openMenu
Opens a menu that enables a user to select whether values should simply be copied or if a series should be filled.- Parameters:
natTable- The NatTable instance on which the operation is performed.
-
reset
Reset the fill handle region in theSelectionLayer, clear the clipboard and redraw the given NatTable.- Parameters:
natTable- The NatTable instance on which the operation is performed.
-