Example usage for Java javax.swing.undo UndoManager fields, constructors, methods, implement or subclass
The text is from its open source code.
UndoManager() Creates a new UndoManager . |
boolean | addEdit(UndoableEdit anEdit) Adds an UndoableEdit to this UndoManager , if it's possible. |
boolean | canRedo() Returns true if edits may be redone. |
boolean | canUndo() Returns true if edits may be undone. |
void | discardAllEdits() Empties the undo manager sending each edit a die message in the process. |
void | end() Turns this UndoManager into a normal CompoundEdit . |
String | getRedoPresentationName() Returns a description of the redoable form of this edit. |
String | getUndoOrRedoPresentationName() Convenience method that returns either getUndoPresentationName or getRedoPresentationName . |
String | getUndoPresentationName() Returns a description of the undoable form of this edit. |
void | redo() Redoes the appropriate edits. |
void | setLimit(int l) Sets the maximum number of edits this UndoManager holds. |
void | undo() Undoes the appropriate edits. |
void | undoOrRedo() Convenience method that invokes one of undo or redo . |