Java javax.swing.undo UndoManager fields, constructors, methods, implement or subclass

Example usage for Java javax.swing.undo UndoManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing.undo UndoManager.

The text is from its open source code.

Subclass

javax.swing.undo.UndoManager has subclasses.
Click this link to see all its subclasses.

Constructor

UndoManager()
Creates a new UndoManager.

Method

booleanaddEdit(UndoableEdit anEdit)
Adds an UndoableEdit to this UndoManager, if it's possible.
booleancanRedo()
Returns true if edits may be redone.
booleancanUndo()
Returns true if edits may be undone.
voiddiscardAllEdits()
Empties the undo manager sending each edit a die message in the process.
voidend()
Turns this UndoManager into a normal CompoundEdit.
StringgetRedoPresentationName()
Returns a description of the redoable form of this edit.
StringgetUndoOrRedoPresentationName()
Convenience method that returns either getUndoPresentationName or getRedoPresentationName.
StringgetUndoPresentationName()
Returns a description of the undoable form of this edit.
voidredo()
Redoes the appropriate edits.
voidsetLimit(int l)
Sets the maximum number of edits this UndoManager holds.
voidundo()
Undoes the appropriate edits.
voidundoOrRedo()
Convenience method that invokes one of undo or redo.