public class PasteSpecialCellAction extends AbstractCellDataStyleAction
Modifier and Type | Field and Description |
---|---|
protected int |
_destColumn |
protected int |
_destLastColumn |
protected int |
_destLastRow |
protected int |
_destRow |
protected Sheet |
_destSheet |
protected Range.PasteOperation |
_pasteOperation |
protected Range.PasteType |
_pasteType |
protected int |
_reservedDestLastColumn |
protected int |
_reservedDestLastRow |
protected boolean |
_skipBlank |
protected boolean |
_transpose |
RESERVE_ALL, RESERVE_CONTENT, RESERVE_MERGE, RESERVE_STYLE
_column, _label, _lastColumn, _lastRow, _row, _sheet, _wholeColumn, _wholeRow
Constructor and Description |
---|
PasteSpecialCellAction(String label,
Sheet sheet,
int srcRow,
int srcColumn,
int srcLastRow,
int srcLastColumn,
Sheet destSheet,
int destRow,
int destColumn,
int destLastRow,
int destLastColumn,
Range.PasteType pasteType,
Range.PasteOperation pasteOperation,
boolean skipBlank,
boolean transpose) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyAction() |
AreaRef |
getRedoSelection() |
Sheet |
getRedoSheet() |
protected int |
getReservedColumn() |
protected int |
getReservedLastColumn() |
protected int |
getReservedLastRow() |
protected int |
getReservedRow() |
protected Sheet |
getReservedSheet() |
AreaRef |
getUndoSelection() |
Sheet |
getUndoSheet() |
protected boolean |
isDstSheetProtected() |
protected boolean |
isSheetProtected()
Check if sheet is protected
|
doAction, isRedoable, isUndoable, undoAction
getLabel, isAnyCellProtected, isSheetAvailable, toString
protected final int _destRow
protected final int _destColumn
protected final int _destLastRow
protected final int _destLastColumn
protected final int _reservedDestLastRow
protected final int _reservedDestLastColumn
protected final Sheet _destSheet
protected final Range.PasteType _pasteType
protected final Range.PasteOperation _pasteOperation
protected final boolean _skipBlank
protected final boolean _transpose
public PasteSpecialCellAction(String label, Sheet sheet, int srcRow, int srcColumn, int srcLastRow, int srcLastColumn, Sheet destSheet, int destRow, int destColumn, int destLastRow, int destLastColumn, Range.PasteType pasteType, Range.PasteOperation pasteOperation, boolean skipBlank, boolean transpose)
protected boolean isSheetProtected()
AbstractUndoableAction
isSheetProtected
in class AbstractCellDataStyleAction
public Sheet getUndoSheet()
getUndoSheet
in interface UndoableAction
getUndoSheet
in class AbstractUndoableAction
public Sheet getRedoSheet()
getRedoSheet
in interface UndoableAction
getRedoSheet
in class AbstractUndoableAction
protected int getReservedRow()
getReservedRow
in class AbstractCellDataStyleAction
protected int getReservedColumn()
getReservedColumn
in class AbstractCellDataStyleAction
protected int getReservedLastRow()
getReservedLastRow
in class AbstractCellDataStyleAction
protected int getReservedLastColumn()
getReservedLastColumn
in class AbstractCellDataStyleAction
protected Sheet getReservedSheet()
getReservedSheet
in class AbstractCellDataStyleAction
public AreaRef getUndoSelection()
getUndoSelection
in interface UndoableAction
getUndoSelection
in class AbstractUndoableAction
public AreaRef getRedoSelection()
getRedoSelection
in interface UndoableAction
getRedoSelection
in class AbstractUndoableAction
protected void applyAction()
applyAction
in class AbstractCellDataStyleAction
protected boolean isDstSheetProtected()
Copyright © 2020. All rights reserved.