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 intRESERVE_ALLstatic intRESERVE_CONTENTstatic intRESERVE_MERGEstatic intRESERVE_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 voidapplyAction()voiddoAction()do the action, either first time or redoprotected intgetReservedColumn()protected intgetReservedLastColumn()protected intgetReservedLastRow()protected intgetReservedRow()protected SheetgetReservedSheet()booleanisRedoable()Check if still redoable or notprotected booleanisSheetProtected()Check if sheet is protectedbooleanisUndoable()Check if still undoable or notvoidundoAction()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:UndoableActiondo the action, either first time or redo
-
applyAction
protected abstract void applyAction()
-
isUndoable
public boolean isUndoable()
Description copied from interface:UndoableActionCheck if still undoable or not- Returns:
-
isRedoable
public boolean isRedoable()
Description copied from interface:UndoableActionCheck if still redoable or not- Returns:
-
undoAction
public void undoAction()
Description copied from interface:UndoableActionUndo the action
-
isSheetProtected
protected boolean isSheetProtected()
Description copied from class:AbstractUndoableActionCheck if sheet is protected- Overrides:
isSheetProtectedin classAbstractUndoableAction- Returns:
-
-