Package io.keikai.ui.sys
Interface UndoableAction
- All Known Implementing Classes:
Abstract2DCellDataStyleAction,AbstractCellDataStyleAction,AbstractEditTextAction,AbstractUndoableAction,AggregatedAction,AutoFillCellAction,CellBorderAction,CellCommentAction,CellEditTextAction,CellRichTextAction,CellStyleAction,ClearCellAction,CutCellAction,DataValidationAction,DeleteCellAction,FontStyleAction,HideHeaderAction,InsertCellAction,MergeCellAction,PasteCellAction,PasteSpecialCellAction,ResizeHeaderAction,ShiftCellAction,SortCellAction,ToggleMergeCellAction,UnmergeCellAction
public interface UndoableAction
- Author:
- dennis
-
Method Details
-
getLabel
String getLabel()- Returns:
- the label of this action
-
doAction
void doAction()do the action, either first time or redo -
isUndoable
boolean isUndoable()Check if still undoable or not- Returns:
-
isRedoable
boolean isRedoable()Check if still redoable or not- Returns:
-
undoAction
void undoAction()Undo the action -
getUndoSelection
AreaRef getUndoSelection()- Returns:
- Selection after undo of this action, null if doesn't provided;
-
getRedoSelection
AreaRef getRedoSelection()- Returns:
- Selection after redo of this action, null if doesn't provided;
-
getUndoSheet
Sheet getUndoSheet()- Returns:
- target sheet of undo action, null if doesn't provided
-
getRedoSheet
Sheet getRedoSheet()- Returns:
- target sheet of redo action, null if doesn't provided
-