Package io.keikai.ui.impl.undo
Class PasteSpecialCellAction
- java.lang.Object
-
- io.keikai.ui.impl.undo.AbstractUndoableAction
-
- io.keikai.ui.impl.undo.AbstractCellDataStyleAction
-
- io.keikai.ui.impl.undo.PasteSpecialCellAction
-
- All Implemented Interfaces:
UndoableAction,Serializable
public class PasteSpecialCellAction extends AbstractCellDataStyleAction
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int_destColumnprotected int_destLastColumnprotected int_destLastRowprotected int_destRowprotected Sheet_destSheetprotected Range.PasteOperation_pasteOperationprotected Range.PasteType_pasteTypeprotected int_reservedDestLastColumnprotected int_reservedDestLastRowprotected boolean_skipBlankprotected boolean_transpose-
Fields inherited from class io.keikai.ui.impl.undo.AbstractCellDataStyleAction
RESERVE_ALL, RESERVE_CONTENT, RESERVE_MERGE, RESERVE_STYLE
-
Fields inherited from class io.keikai.ui.impl.undo.AbstractUndoableAction
_column, _label, _lastColumn, _lastRow, _row, _sheet, _wholeColumn, _wholeRow
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyAction()AreaRefgetPastedRange()AreaRefgetRedoSelection()SheetgetRedoSheet()protected intgetReservedColumn()protected intgetReservedLastColumn()protected intgetReservedLastRow()protected intgetReservedRow()protected SheetgetReservedSheet()AreaRefgetUndoSelection()SheetgetUndoSheet()protected booleanisDstSheetProtected()protected booleanisSheetProtected()Check if sheet is protected-
Methods inherited from class io.keikai.ui.impl.undo.AbstractCellDataStyleAction
doAction, isRedoable, isUndoable, undoAction
-
Methods inherited from class io.keikai.ui.impl.undo.AbstractUndoableAction
getLabel, isAnyCellProtected, isSheetAvailable, toString
-
-
-
-
Field Detail
-
_destRow
protected final int _destRow
-
_destColumn
protected final int _destColumn
-
_destLastRow
protected final int _destLastRow
-
_destLastColumn
protected final int _destLastColumn
-
_reservedDestLastRow
protected final int _reservedDestLastRow
-
_reservedDestLastColumn
protected final int _reservedDestLastColumn
-
_destSheet
protected final Sheet _destSheet
-
_pasteType
protected final Range.PasteType _pasteType
-
_pasteOperation
protected final Range.PasteOperation _pasteOperation
-
_skipBlank
protected final boolean _skipBlank
-
_transpose
protected final boolean _transpose
-
-
Constructor Detail
-
PasteSpecialCellAction
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)
-
-
Method Detail
-
isSheetProtected
protected boolean isSheetProtected()
Description copied from class:AbstractUndoableActionCheck if sheet is protected- Overrides:
isSheetProtectedin classAbstractCellDataStyleAction- Returns:
-
getUndoSheet
public Sheet getUndoSheet()
- Specified by:
getUndoSheetin interfaceUndoableAction- Overrides:
getUndoSheetin classAbstractUndoableAction- Returns:
- target sheet of undo action, null if doesn't provided
-
getRedoSheet
public Sheet getRedoSheet()
- Specified by:
getRedoSheetin interfaceUndoableAction- Overrides:
getRedoSheetin classAbstractUndoableAction- Returns:
- target sheet of redo action, null if doesn't provided
-
getReservedRow
protected int getReservedRow()
- Overrides:
getReservedRowin classAbstractCellDataStyleAction
-
getReservedColumn
protected int getReservedColumn()
- Overrides:
getReservedColumnin classAbstractCellDataStyleAction
-
getReservedLastRow
protected int getReservedLastRow()
- Overrides:
getReservedLastRowin classAbstractCellDataStyleAction
-
getReservedLastColumn
protected int getReservedLastColumn()
- Overrides:
getReservedLastColumnin classAbstractCellDataStyleAction
-
getReservedSheet
protected Sheet getReservedSheet()
- Overrides:
getReservedSheetin classAbstractCellDataStyleAction
-
getUndoSelection
public AreaRef getUndoSelection()
- Specified by:
getUndoSelectionin interfaceUndoableAction- Overrides:
getUndoSelectionin classAbstractUndoableAction- Returns:
- Selection after undo of this action, null if doesn't provided;
-
getRedoSelection
public AreaRef getRedoSelection()
- Specified by:
getRedoSelectionin interfaceUndoableAction- Overrides:
getRedoSelectionin classAbstractUndoableAction- Returns:
- Selection after redo of this action, null if doesn't provided;
-
applyAction
protected void applyAction()
- Specified by:
applyActionin classAbstractCellDataStyleAction
-
isDstSheetProtected
protected boolean isDstSheetProtected()
-
getPastedRange
public AreaRef getPastedRange()
-
-