Class FormulaCopyDataCommandHandler
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractLayerCommandHandler<CopyDataToClipboardCommand>
org.eclipse.nebula.widgets.nattable.copy.command.CopyDataCommandHandler
org.eclipse.nebula.widgets.nattable.copy.command.InternalCopyDataCommandHandler
org.eclipse.nebula.widgets.nattable.formula.command.FormulaCopyDataCommandHandler
- All Implemented Interfaces:
ILayerCommandHandler<CopyDataToClipboardCommand>
Specialized
CopyDataCommandHandler that stores the copied cells in
the InternalCellClipboard so it can be pasted within NatTable.- Since:
- 1.4
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.nattable.copy.command.InternalCopyDataCommandHandler
clipboardFields inherited from class org.eclipse.nebula.widgets.nattable.copy.command.CopyDataCommandHandler
selectionLayer -
Constructor Summary
ConstructorsConstructorDescriptionFormulaCopyDataCommandHandler(SelectionLayer selectionLayer, InternalCellClipboard clipboard) Creates an instance that only checks theSelectionLayerfor the data to add to the system clipboard and the givenInternalCellClipboard. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPerform actions after copying values to the internal clipboard.protected voidPerform actions prior copying values to the internal clipboard.Methods inherited from class org.eclipse.nebula.widgets.nattable.copy.command.InternalCopyDataCommandHandler
internalDoCommandMethods inherited from class org.eclipse.nebula.widgets.nattable.copy.command.CopyDataCommandHandler
assembleBody, assembleColumnHeaders, assembleCopiedDataStructure, doCommand, getColumnHeaderLayer, getCommandClass, getCopyLayer, getRowHeaderLayer, getSelectedColumnPositions, isCopyAllowed, isEmpty, setCopyFormattedText, setCopyLayerMethods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractLayerCommandHandler
doCommand
-
Constructor Details
-
FormulaCopyDataCommandHandler
public FormulaCopyDataCommandHandler(SelectionLayer selectionLayer, InternalCellClipboard clipboard) Creates an instance that only checks theSelectionLayerfor the data to add to the system clipboard and the givenInternalCellClipboard.- Parameters:
selectionLayer- TheSelectionLayerwithin the NatTable. Can not benull.clipboard- TheInternalCellClipboardthat should be used for copy/paste operations within a NatTable instance.
-
-
Method Details
-
preInternalCopy
protected void preInternalCopy()Description copied from class:InternalCopyDataCommandHandlerPerform actions prior copying values to the internal clipboard. E.g. disabling formula evaluation.- Overrides:
preInternalCopyin classInternalCopyDataCommandHandler
-
postInternalCopy
protected void postInternalCopy()Description copied from class:InternalCopyDataCommandHandlerPerform actions after copying values to the internal clipboard. E.g. enabling formula evaluation.- Overrides:
postInternalCopyin classInternalCopyDataCommandHandler
-