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
abstract class handle src content/style reservation
- Author:
- dennis
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class io.keikai.ui.impl.undo.AbstractUndoableAction
_column, _label, _lastColumn, _lastRow, _row, _sheet, _wholeColumn, _wholeRow -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCellDataStyleAction(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
Modifier and TypeMethodDescriptionprotected abstract voidvoiddoAction()do the action, either first time or redoprotected intprotected intprotected intprotected intprotected SheetbooleanCheck if still redoable or notprotected booleanCheck if sheet is protectedbooleanCheck if still undoable or notvoidUndo the actionMethods inherited from class io.keikai.ui.impl.undo.AbstractUndoableAction
getLabel, getRedoSelection, getRedoSheet, getUndoSelection, getUndoSheet, isAnyCellProtected, isSheetAvailable, toString
-
Field Details
-
RESERVE_CONTENT
public static final int RESERVE_CONTENT- See Also:
-
RESERVE_STYLE
public static final int RESERVE_STYLE- See Also:
-
RESERVE_MERGE
public static final int RESERVE_MERGE- See Also:
-
RESERVE_ALL
public static final int RESERVE_ALL- See Also:
-
-
Constructor Details
-
AbstractCellDataStyleAction
-
AbstractCellDataStyleAction
-
-
Method Details
-
getReservedRow
protected int getReservedRow() -
getReservedColumn
protected int getReservedColumn() -
getReservedLastRow
protected int getReservedLastRow() -
getReservedLastColumn
protected int getReservedLastColumn() -
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:
-