public class InternalPasteDataCommandHandler extends AbstractLayerCommandHandler<PasteDataCommand>
| Modifier and Type | Field and Description |
|---|---|
protected InternalCellClipboard |
clipboard |
protected SelectionLayer |
selectionLayer |
| Constructor and Description |
|---|
InternalPasteDataCommandHandler(SelectionLayer selectionLayer,
InternalCellClipboard clipboard) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doCommand(PasteDataCommand command) |
Class<PasteDataCommand> |
getCommandClass() |
protected Object |
getPasteValue(ILayerCell cell,
int pasteColumn,
int pasteRow)
Returns the value that should be pasted.
|
protected void |
postInternalPaste()
Perform actions after pasting values from the internal clipboard.
|
protected void |
preInternalPaste()
Perform actions prior pasting values from the internal clipboard.
|
doCommandprotected SelectionLayer selectionLayer
protected InternalCellClipboard clipboard
public InternalPasteDataCommandHandler(SelectionLayer selectionLayer, InternalCellClipboard clipboard)
selectionLayer - SelectionLayer that is needed to determine the
position to paste the values to.clipboard - The InternalCellClipboard that contains the values
that should be pasted.protected boolean doCommand(PasteDataCommand command)
doCommand in class AbstractLayerCommandHandler<PasteDataCommand>protected Object getPasteValue(ILayerCell cell, int pasteColumn, int pasteRow)
cell - The ILayerCell from which to retrieve the value to
paste from.pasteColumn - The column position of the cell to paste to.pasteRow - The row position of the cell to paste to.protected void preInternalPaste()
protected void postInternalPaste()
public Class<PasteDataCommand> getCommandClass()
Copyright © 2016. All rights reserved.