Package groovy.ui.text
Class TextUndoManager
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
javax.swing.undo.UndoManager
groovy.ui.text.TextUndoManager
- All Implemented Interfaces:
Serializable,EventListener,UndoableEditListener,UndoableEdit
@Deprecated public class TextUndoManager extends UndoManager
Deprecated.
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).
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TextUndoManager()Deprecated.Creates a new instance of TextUndoManager. -
Method Summary
Modifier and Type Method Description voidaddPropertyChangeListener(PropertyChangeListener pcl)Deprecated.voiddie()Deprecated.voiddiscardAllEdits()Deprecated.protected voidfirePropertyChangeEvent(String name, boolean oldValue, boolean newValue)Deprecated.booleanhasChanged()Deprecated.voidredo()Deprecated.protected voidredoTo(UndoableEdit edit)Deprecated.voidremovePropertyChangeListener(PropertyChangeListener pcl)Deprecated.voidreset()Deprecated.protected voidtrimEdits(int from, int to)Deprecated.voidundo()Deprecated.voidundoableEditHappened(UndoableEditEvent uee)Deprecated.Methods inherited from class javax.swing.undo.UndoManager
addEdit, canRedo, canUndo, canUndoOrRedo, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, setLimit, toString, trimForLimit, undoOrRedo, undoToMethods inherited from class javax.swing.undo.CompoundEdit
getPresentationName, isInProgress, isSignificant, lastEdit
-
Constructor Details
-
TextUndoManager
public TextUndoManager()Deprecated.Creates a new instance of TextUndoManager.
-
-
Method Details
-
addPropertyChangeListener
Deprecated. -
die
public void die()Deprecated.- Specified by:
diein interfaceUndoableEdit- Overrides:
diein classCompoundEdit
-
discardAllEdits
public void discardAllEdits()Deprecated.- Overrides:
discardAllEditsin classUndoManager
-
firePropertyChangeEvent
Deprecated. -
hasChanged
public boolean hasChanged()Deprecated. -
redo
Deprecated.- Specified by:
redoin interfaceUndoableEdit- Overrides:
redoin classUndoManager- Throws:
CannotRedoException
-
redoTo
Deprecated.- Overrides:
redoToin classUndoManager
-
removePropertyChangeListener
Deprecated. -
reset
public void reset()Deprecated. -
trimEdits
protected void trimEdits(int from, int to)Deprecated.- Overrides:
trimEditsin classUndoManager
-
undo
Deprecated.- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classUndoManager- Throws:
CannotUndoException
-
undoableEditHappened
Deprecated.- Specified by:
undoableEditHappenedin interfaceUndoableEditListener- Overrides:
undoableEditHappenedin classUndoManager
-