public interface UndoableActionManager
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Spreadsheet spreadsheet)
Will be called when a manager create
|
void |
clear()
clear the history
|
void |
doAction(UndoableAction action)
Do the action and put it into history
|
String |
getRedoLabel()
Get redo label, only available if
isRedoable() |
String |
getUndoLabel()
Get undo label, only available if
isUndoable() |
boolean |
isRedoable()
Is redoable
|
boolean |
isUndoable()
Is undoable
|
void |
redoAction()
redo the last undo action, only availabel if
isRedoable() |
void |
setMaxHsitorySize(int size)
Sets the maximun history size
|
void |
undoAction()
undo last action, only available if
isUndoable() |
void doAction(UndoableAction action)
action - boolean isUndoable()
String getUndoLabel()
isUndoable()void undoAction()
isUndoable()boolean isRedoable()
String getRedoLabel()
isRedoable()void redoAction()
isRedoable()void clear()
void setMaxHsitorySize(int size)
size - void bind(Spreadsheet spreadsheet)
sparedsheet - Copyright © 2020. All rights reserved.