Package io.keikai.ui.impl.undo
Class PasteCellAction
- java.lang.Object
-
- io.keikai.ui.impl.undo.AbstractUndoableAction
-
- io.keikai.ui.impl.undo.AbstractCellDataStyleAction
-
- io.keikai.ui.impl.undo.PasteCellAction
-
- All Implemented Interfaces:
UndoableAction
,Serializable
public class PasteCellAction extends AbstractCellDataStyleAction
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
_destColumn
protected int
_destLastColumn
protected int
_destLastRow
protected int
_destRow
protected Sheet
_destSheet
protected boolean
_destWholeColumn
protected boolean
_destWholeRow
protected int
_reservedDestLastColumn
protected int
_reservedDestLastRow
-
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 PasteCellAction(String label, Sheet sheet, int srcRow, int srcColumn, int srcLastRow, int srcLastColumn, boolean srcWholeColumn, boolean srcWholeRow, Sheet destSheet, int destRow, int destColumn, int destLastRow, int destLastColumn, boolean destWholeColumn, boolean destWholeRow)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyAction()
AreaRef
getPastedRange()
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-
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
-
_destWholeColumn
protected final boolean _destWholeColumn
-
_destWholeRow
protected final boolean _destWholeRow
-
-
Constructor Detail
-
PasteCellAction
public PasteCellAction(String label, Sheet sheet, int srcRow, int srcColumn, int srcLastRow, int srcLastColumn, boolean srcWholeColumn, boolean srcWholeRow, Sheet destSheet, int destRow, int destColumn, int destLastRow, int destLastColumn, boolean destWholeColumn, boolean destWholeRow)
-
-
Method Detail
-
isSheetProtected
protected boolean isSheetProtected()
Description copied from class:AbstractUndoableAction
Check if sheet is protected- Overrides:
isSheetProtected
in classAbstractCellDataStyleAction
- Returns:
-
getUndoSheet
public Sheet getUndoSheet()
- Specified by:
getUndoSheet
in interfaceUndoableAction
- Overrides:
getUndoSheet
in classAbstractUndoableAction
- Returns:
- target sheet of undo action, null if doesn't provided
-
getRedoSheet
public Sheet getRedoSheet()
- Specified by:
getRedoSheet
in interfaceUndoableAction
- Overrides:
getRedoSheet
in classAbstractUndoableAction
- Returns:
- target sheet of redo action, null if doesn't provided
-
getReservedRow
protected int getReservedRow()
- Overrides:
getReservedRow
in classAbstractCellDataStyleAction
-
getReservedColumn
protected int getReservedColumn()
- Overrides:
getReservedColumn
in classAbstractCellDataStyleAction
-
getReservedLastRow
protected int getReservedLastRow()
- Overrides:
getReservedLastRow
in classAbstractCellDataStyleAction
-
getReservedLastColumn
protected int getReservedLastColumn()
- Overrides:
getReservedLastColumn
in classAbstractCellDataStyleAction
-
getReservedSheet
protected Sheet getReservedSheet()
- Overrides:
getReservedSheet
in classAbstractCellDataStyleAction
-
getUndoSelection
public AreaRef getUndoSelection()
- Specified by:
getUndoSelection
in interfaceUndoableAction
- Overrides:
getUndoSelection
in classAbstractUndoableAction
- Returns:
- Selection after undo of this action, null if doesn't provided;
-
getRedoSelection
public AreaRef getRedoSelection()
- Specified by:
getRedoSelection
in interfaceUndoableAction
- Overrides:
getRedoSelection
in classAbstractUndoableAction
- Returns:
- Selection after redo of this action, null if doesn't provided;
-
applyAction
protected void applyAction()
- Specified by:
applyAction
in classAbstractCellDataStyleAction
-
isDstSheetProtected
protected boolean isDstSheetProtected()
-
getPastedRange
public AreaRef getPastedRange()
-
-