public class TextUndoManager extends UndoManager
editsRedoName, UndoName| Constructor and Description |
|---|
TextUndoManager()
Creates a new instance of TextUndoManager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener pcl) |
void |
die() |
void |
discardAllEdits() |
protected void |
firePropertyChangeEvent(String name,
boolean oldValue,
boolean newValue) |
boolean |
hasChanged() |
void |
redo() |
protected void |
redoTo(UndoableEdit edit) |
void |
removePropertyChangeListener(PropertyChangeListener pcl) |
void |
reset() |
protected void |
trimEdits(int from,
int to) |
void |
undo() |
void |
undoableEditHappened(UndoableEditEvent uee) |
addEdit, canRedo, canUndo, canUndoOrRedo, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, setLimit, toString, trimForLimit, undoOrRedo, undoTogetPresentationName, isInProgress, isSignificant, lastEditreplaceEditpublic TextUndoManager()
public void addPropertyChangeListener(PropertyChangeListener pcl)
public void die()
die in interface UndoableEditdie in class CompoundEditpublic void discardAllEdits()
discardAllEdits in class UndoManagerprotected void firePropertyChangeEvent(String name, boolean oldValue, boolean newValue)
public boolean hasChanged()
public void redo()
throws CannotRedoException
redo in interface UndoableEditredo in class UndoManagerCannotRedoExceptionprotected void redoTo(UndoableEdit edit)
redoTo in class UndoManagerpublic void removePropertyChangeListener(PropertyChangeListener pcl)
public void reset()
protected void trimEdits(int from,
int to)
trimEdits in class UndoManagerpublic void undo()
throws CannotUndoException
undo in interface UndoableEditundo in class UndoManagerCannotUndoExceptionpublic void undoableEditHappened(UndoableEditEvent uee)
undoableEditHappened in interface UndoableEditListenerundoableEditHappened in class UndoManager