public class TextUndoManager extends UndoManager
edits
RedoName, 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, undoTo
getPresentationName, isInProgress, isSignificant, lastEdit
replaceEdit
public TextUndoManager()
public void addPropertyChangeListener(PropertyChangeListener pcl)
public void die()
die
in interface UndoableEdit
die
in class CompoundEdit
public void discardAllEdits()
discardAllEdits
in class UndoManager
protected void firePropertyChangeEvent(String name, boolean oldValue, boolean newValue)
public boolean hasChanged()
public void redo() throws CannotRedoException
redo
in interface UndoableEdit
redo
in class UndoManager
CannotRedoException
protected void redoTo(UndoableEdit edit)
redoTo
in class UndoManager
public void removePropertyChangeListener(PropertyChangeListener pcl)
public void reset()
protected void trimEdits(int from, int to)
trimEdits
in class UndoManager
public void undo() throws CannotUndoException
undo
in interface UndoableEdit
undo
in class UndoManager
CannotUndoException
public void undoableEditHappened(UndoableEditEvent uee)
undoableEditHappened
in interface UndoableEditListener
undoableEditHappened
in class UndoManager