Package io.keikai.ui.sys
Interface UndoableActionManager
- 
- All Known Implementing Classes:
- DummyUndoableActionManager,- UndoableActionManagerImpl
 
 public interface UndoableActionManagerthe manager to control undoable action- Author:
- dennis
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbind(Spreadsheet spreadsheet)Will be called when a manager createvoidclear()clear the historyvoiddoAction(UndoableAction action)Do the action and put it into historyStringgetRedoLabel()Get redo label, only available ifisRedoable()StringgetUndoLabel()Get undo label, only available ifisUndoable()booleanisRedoable()Is redoablebooleanisUndoable()Is undoablevoidredoAction()redo the last undo action, only availabel ifisRedoable()voidsetMaxHsitorySize(int size)Sets the maximun history sizevoidundoAction()undo last action, only available ifisUndoable()
 
- 
- 
- 
Method Detail- 
doActionvoid doAction(UndoableAction action) Do the action and put it into history- Parameters:
- action-
 
 - 
isUndoableboolean isUndoable() Is undoable- Returns:
 
 - 
getUndoLabelString getUndoLabel() Get undo label, only available ifisUndoable()- Returns:
 
 - 
undoActionvoid undoAction() undo last action, only available ifisUndoable()
 - 
isRedoableboolean isRedoable() Is redoable- Returns:
 
 - 
getRedoLabelString getRedoLabel() Get redo label, only available ifisRedoable()- Returns:
 
 - 
redoActionvoid redoAction() redo the last undo action, only availabel ifisRedoable()
 - 
clearvoid clear() clear the history
 - 
setMaxHsitorySizevoid setMaxHsitorySize(int size) Sets the maximun history size- Parameters:
- size-
 
 - 
bindvoid bind(Spreadsheet spreadsheet) Will be called when a manager create- Parameters:
- sparedsheet-
 
 
- 
 
-