Class InternalCopyDataCommandHandler
- 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
-
- All Implemented Interfaces:
ILayerCommandHandler<CopyDataToClipboardCommand>
- Direct Known Subclasses:
FormulaCopyDataCommandHandler
public class InternalCopyDataCommandHandler extends CopyDataCommandHandler
SpecializedCopyDataCommandHandlerthat stores the copied cells in theInternalCellClipboardso it can be pasted within NatTable.- Since:
- 1.4
-
-
Field Summary
Fields Modifier and Type Field Description protected InternalCellClipboardclipboard-
Fields inherited from class org.eclipse.nebula.widgets.nattable.copy.command.CopyDataCommandHandler
selectionLayer
-
-
Constructor Summary
Constructors Constructor Description InternalCopyDataCommandHandler(SelectionLayer selectionLayer, InternalCellClipboard clipboard)Creates an instance that only checks theSelectionLayerfor 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 voidinternalDoCommand(CopyDataToClipboardCommand command, ILayerCell[][] assembledCopiedDataStructure)Internal implementation of the command handling that additionally takes the assembled data structure to copy as parameter to avoid multiple assemble operations.protected voidpostInternalCopy()Perform actions after copying values to the internal clipboard.protected voidpreInternalCopy()Perform actions prior copying values to the internal clipboard.-
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
-
-
-
-
Field Detail
-
clipboard
protected InternalCellClipboard clipboard
-
-
Constructor Detail
-
InternalCopyDataCommandHandler
public InternalCopyDataCommandHandler(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 Detail
-
internalDoCommand
protected void internalDoCommand(CopyDataToClipboardCommand command, ILayerCell[][] assembledCopiedDataStructure)
Description copied from class:CopyDataCommandHandlerInternal implementation of the command handling that additionally takes the assembled data structure to copy as parameter to avoid multiple assemble operations.- Overrides:
internalDoCommandin classCopyDataCommandHandler- Parameters:
command- TheCopyDataToClipboardCommandto handle.assembledCopiedDataStructure- The assembled data structure to copy.
-
preInternalCopy
protected void preInternalCopy()
Perform actions prior copying values to the internal clipboard. E.g. disabling formula evaluation.
-
postInternalCopy
protected void postInternalCopy()
Perform actions after copying values to the internal clipboard. E.g. enabling formula evaluation.
-
-