public class TextUndoManager
extends javax.swing.undo.UndoManager
Constructor and Description |
---|
TextUndoManager()
Creates a new instance of TextUndoManager.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl) |
void |
die() |
void |
discardAllEdits() |
protected void |
firePropertyChangeEvent(java.lang.String name,
boolean oldValue,
boolean newValue) |
boolean |
hasChanged() |
void |
redo() |
protected void |
redoTo(javax.swing.undo.UndoableEdit edit) |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl) |
void |
reset() |
protected void |
trimEdits(int from,
int to) |
void |
undo() |
void |
undoableEditHappened(javax.swing.event.UndoableEditEvent uee) |
addEdit, canRedo, canUndo, canUndoOrRedo, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, setLimit, toString, trimForLimit, undoOrRedo, undoTo
public TextUndoManager()
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
public void die()
die
in interface javax.swing.undo.UndoableEdit
die
in class javax.swing.undo.CompoundEdit
public void discardAllEdits()
discardAllEdits
in class javax.swing.undo.UndoManager
protected void firePropertyChangeEvent(java.lang.String name, boolean oldValue, boolean newValue)
public boolean hasChanged()
public void redo() throws javax.swing.undo.CannotRedoException
redo
in interface javax.swing.undo.UndoableEdit
redo
in class javax.swing.undo.UndoManager
javax.swing.undo.CannotRedoException
protected void redoTo(javax.swing.undo.UndoableEdit edit)
redoTo
in class javax.swing.undo.UndoManager
public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
public void reset()
protected void trimEdits(int from, int to)
trimEdits
in class javax.swing.undo.UndoManager
public void undo() throws javax.swing.undo.CannotUndoException
undo
in interface javax.swing.undo.UndoableEdit
undo
in class javax.swing.undo.UndoManager
javax.swing.undo.CannotUndoException
public void undoableEditHappened(javax.swing.event.UndoableEditEvent uee)
undoableEditHappened
in interface javax.swing.event.UndoableEditListener
undoableEditHappened
in class javax.swing.undo.UndoManager