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>
public class FormulaCopyDataCommandHandler extends InternalCopyDataCommandHandler
SpecializedCopyDataCommandHandler
that stores the copied cells in theInternalCellClipboard
so it can be pasted within NatTable.- Since:
- 1.4
-
-
Field Summary
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.copy.command.InternalCopyDataCommandHandler
clipboard
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.copy.command.CopyDataCommandHandler
selectionLayer
-
-
Constructor Summary
Constructors Constructor Description FormulaCopyDataCommandHandler(SelectionLayer selectionLayer, InternalCellClipboard clipboard)
Creates an instance that only checks theSelectionLayer
for the data to add to the system clipboard and the givenInternalCellClipboard
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
postInternalCopy()
Perform actions after copying values to the internal clipboard.protected void
preInternalCopy()
Perform actions prior copying values to the internal clipboard.-
Methods inherited from class org.eclipse.nebula.widgets.nattable.copy.command.InternalCopyDataCommandHandler
internalDoCommand
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.copy.command.CopyDataCommandHandler
assembleBody, assembleColumnHeaders, assembleCopiedDataStructure, doCommand, getColumnHeaderLayer, getCommandClass, getCopyLayer, getRowHeaderLayer, getSelectedColumnPositions, isCopyAllowed, isEmpty, setCopyFormattedText, setCopyLayer
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractLayerCommandHandler
doCommand
-
-
-
-
Constructor Detail
-
FormulaCopyDataCommandHandler
public FormulaCopyDataCommandHandler(SelectionLayer selectionLayer, InternalCellClipboard clipboard)
Creates an instance that only checks theSelectionLayer
for the data to add to the system clipboard and the givenInternalCellClipboard
.- Parameters:
selectionLayer
- TheSelectionLayer
within the NatTable. Can not benull
.clipboard
- TheInternalCellClipboard
that should be used for copy/paste operations within a NatTable instance.
-
-
Method Detail
-
preInternalCopy
protected void preInternalCopy()
Description copied from class:InternalCopyDataCommandHandler
Perform actions prior copying values to the internal clipboard. E.g. disabling formula evaluation.- Overrides:
preInternalCopy
in classInternalCopyDataCommandHandler
-
postInternalCopy
protected void postInternalCopy()
Description copied from class:InternalCopyDataCommandHandler
Perform actions after copying values to the internal clipboard. E.g. enabling formula evaluation.- Overrides:
postInternalCopy
in classInternalCopyDataCommandHandler
-
-