public interface UndoRedoStack extends WeakReferencingObservable
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRedo()
If a redo can be performed on the stack.
|
boolean |
canUndo()
If an undo can be performed on the stack.
|
List |
getRedoInfos()
Returns the list of UndoRedoInfo in the REDO stack
|
List |
getUndoInfos()
Returns the list of UndoRedoInfo in the UNDO stack
|
void |
redo()
Re-does the following redoable elements.
|
void |
redo(int num)
Re-does a number of the following redoable element.
|
void |
undo()
Undoes the following undoable elements.
|
void |
undo(int num)
Undoes a number of the following undoable elements.
|
addObserver, deleteObserver, deleteObserversvoid undo()
throws UndoException
UndoException - if there is an error performing de undo elementvoid undo(int num)
throws UndoException
num - the number of elements to undoUndoException - if there is an error performing de undo elementvoid redo()
throws RedoException
RedoException - if there is an error performing de redo elementvoid redo(int num)
throws RedoException
num - the number of elements to redoRedoException - if there is an error performing de redo elementList getUndoInfos()
List getRedoInfos()
boolean canUndo()
boolean canRedo()