Package io.keikai.ui.impl.undo
Class AbstractCellDataStyleAction
- java.lang.Object
-
- io.keikai.ui.impl.undo.AbstractUndoableAction
-
- io.keikai.ui.impl.undo.AbstractCellDataStyleAction
-
- All Implemented Interfaces:
UndoableAction
,Serializable
- Direct Known Subclasses:
CellBorderAction
,CellStyleAction
,ClearCellAction
,FontStyleAction
,MergeCellAction
,PasteCellAction
,PasteSpecialCellAction
,SortCellAction
,ToggleMergeCellAction
,UnmergeCellAction
public abstract class AbstractCellDataStyleAction extends AbstractUndoableAction
abstract class handle src content/style reservation- Author:
- dennis
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
RESERVE_ALL
static int
RESERVE_CONTENT
static int
RESERVE_MERGE
static int
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 AbstractCellDataStyleAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn, boolean wholeColumn, boolean wholeRow, int reserveType)
AbstractCellDataStyleAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn, int reserveType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
applyAction()
void
doAction()
do the action, either first time or redoprotected int
getReservedColumn()
protected int
getReservedLastColumn()
protected int
getReservedLastRow()
protected int
getReservedRow()
protected Sheet
getReservedSheet()
boolean
isRedoable()
Check if still redoable or notprotected boolean
isSheetProtected()
Check if sheet is protectedboolean
isUndoable()
Check if still undoable or notvoid
undoAction()
Undo the action-
Methods inherited from class io.keikai.ui.impl.undo.AbstractUndoableAction
getLabel, getRedoSelection, getRedoSheet, getUndoSelection, getUndoSheet, isAnyCellProtected, isSheetAvailable, toString
-
-
-
-
Field Detail
-
RESERVE_CONTENT
public static final int RESERVE_CONTENT
- See Also:
- Constant Field Values
-
RESERVE_STYLE
public static final int RESERVE_STYLE
- See Also:
- Constant Field Values
-
RESERVE_MERGE
public static final int RESERVE_MERGE
- See Also:
- Constant Field Values
-
RESERVE_ALL
public static final int RESERVE_ALL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getReservedRow
protected int getReservedRow()
-
getReservedColumn
protected int getReservedColumn()
-
getReservedLastRow
protected int getReservedLastRow()
-
getReservedLastColumn
protected int getReservedLastColumn()
-
getReservedSheet
protected Sheet getReservedSheet()
-
doAction
public void doAction()
Description copied from interface:UndoableAction
do the action, either first time or redo
-
applyAction
protected abstract void applyAction()
-
isUndoable
public boolean isUndoable()
Description copied from interface:UndoableAction
Check if still undoable or not- Returns:
-
isRedoable
public boolean isRedoable()
Description copied from interface:UndoableAction
Check if still redoable or not- Returns:
-
undoAction
public void undoAction()
Description copied from interface:UndoableAction
Undo the action
-
isSheetProtected
protected boolean isSheetProtected()
Description copied from class:AbstractUndoableAction
Check if sheet is protected- Overrides:
isSheetProtected
in classAbstractUndoableAction
- Returns:
-
-