Package io.keikai.ui.sys
Interface UndoableActionManager
-
- All Known Implementing Classes:
DummyUndoableActionManager
,UndoableActionManagerImpl
public interface UndoableActionManager
the manager to control undoable action- Author:
- dennis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
bind(Spreadsheet spreadsheet)
Will be called when a manager createvoid
clear()
clear the historyvoid
doAction(UndoableAction action)
Do the action and put it into historyString
getRedoLabel()
Get redo label, only available ifisRedoable()
String
getUndoLabel()
Get undo label, only available ifisUndoable()
boolean
isRedoable()
Is redoableboolean
isUndoable()
Is undoablevoid
redoAction()
redo the last undo action, only availabel ifisRedoable()
void
setMaxHsitorySize(int size)
Sets the maximun history sizevoid
undoAction()
undo last action, only available ifisUndoable()
-
-
-
Method Detail
-
doAction
void doAction(UndoableAction action)
Do the action and put it into history- Parameters:
action
-
-
isUndoable
boolean isUndoable()
Is undoable- Returns:
-
getUndoLabel
String getUndoLabel()
Get undo label, only available ifisUndoable()
- Returns:
-
undoAction
void undoAction()
undo last action, only available ifisUndoable()
-
isRedoable
boolean isRedoable()
Is redoable- Returns:
-
getRedoLabel
String getRedoLabel()
Get redo label, only available ifisRedoable()
- Returns:
-
redoAction
void redoAction()
redo the last undo action, only availabel ifisRedoable()
-
clear
void clear()
clear the history
-
setMaxHsitorySize
void setMaxHsitorySize(int size)
Sets the maximun history size- Parameters:
size
-
-
bind
void bind(Spreadsheet spreadsheet)
Will be called when a manager create- Parameters:
sparedsheet
-
-
-