Public Member Functions | |
synchronized boolean | canUndo (Object source) |
synchronized boolean | canRedo (Object source) |
void | undo (Object source) |
void | redo (Object source) |
Protected Member Functions | |
UndoableEdit | editToBeUndone (Object source) |
UndoableEdit | nextEditToBeUndone (UndoableEdit current) |
UndoableEdit | editToBeRedone (Object source) |
UndoableEdit | nextEditToBeRedone (UndoableEdit current) |
|
Overridden to preserve usual semantics: returns true if a redo operation would be successful now for the given view, false otherwise |
|
Overridden to preserve usual semantics: returns true if an undo operation would be successful now for the given view, false otherwise |
|
|
|
|
|
Returns the the next significant edit wrt to current to be redone if redo is called. May return null. |
|
Returns the the next significant edit wrt to current to be undone if undo is called. May return null. |
|
If this
If not |
|
If this UndoManager is inProgress, undo the last significant UndoableEdit wrt to source, and all insignificant edits back to it. Updates indexOfNextAdd accordingly. If not inProgress, indexOfNextAdd is ignored and super's routine is called.
|