public class TextUndoManager extends UndoManager
To use this, simply drop this as an UndoableEditListener into your document, and then create actions to call undo/redo as needed (checking can undo/redo first, of course).
Constructor and description |
---|
TextUndoManager() Creates a new instance of TextUndoManager. |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
addPropertyChangeListener(PropertyChangeListener pcl) |
|
public void |
die() |
|
public void |
discardAllEdits() |
|
public boolean |
hasChanged() |
|
public void |
redo() |
|
public void |
removePropertyChangeListener(PropertyChangeListener pcl) |
|
public void |
reset() |
|
public void |
undo() |
|
public void |
undoableEditHappened(UndoableEditEvent uee) |
Methods inherited from class | Name |
---|---|
class UndoManager |
toString, end, setLimit, getLimit, addEdit, undoableEditHappened, undo, canUndo, redo, canRedo, getUndoPresentationName, getRedoPresentationName, discardAllEdits, undoOrRedo, canUndoOrRedo, getUndoOrRedoPresentationName, die, isSignificant, getPresentationName, isInProgress, replaceEdit, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.