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:
java.io.Serializable,java.util.EventListener,javax.swing.event.UndoableEditListener,javax.swing.undo.UndoableEdit
@Deprecated
public class TextUndoManager
extends javax.swing.undo.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
Fields inherited from class javax.swing.undo.CompoundEdit
editsFields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName -
Constructor Summary
Constructors Constructor Description TextUndoManager()Deprecated.Creates a new instance of TextUndoManager. -
Method Summary
Modifier and Type Method Description voidaddPropertyChangeListener(java.beans.PropertyChangeListener pcl)Deprecated.voiddie()Deprecated.voiddiscardAllEdits()Deprecated.protected voidfirePropertyChangeEvent(java.lang.String name, boolean oldValue, boolean newValue)Deprecated.booleanhasChanged()Deprecated.voidredo()Deprecated.protected voidredoTo(javax.swing.undo.UndoableEdit edit)Deprecated.voidremovePropertyChangeListener(java.beans.PropertyChangeListener pcl)Deprecated.voidreset()Deprecated.protected voidtrimEdits(int from, int to)Deprecated.voidundo()Deprecated.voidundoableEditHappened(javax.swing.event.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, lastEditMethods inherited from class javax.swing.undo.AbstractUndoableEdit
replaceEditMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
TextUndoManager
public TextUndoManager()Deprecated.Creates a new instance of TextUndoManager.
-
-
Method Details
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)Deprecated. -
die
public void die()Deprecated.- Specified by:
diein interfacejavax.swing.undo.UndoableEdit- Overrides:
diein classjavax.swing.undo.CompoundEdit
-
discardAllEdits
public void discardAllEdits()Deprecated.- Overrides:
discardAllEditsin classjavax.swing.undo.UndoManager
-
firePropertyChangeEvent
protected void firePropertyChangeEvent(java.lang.String name, boolean oldValue, boolean newValue)Deprecated. -
hasChanged
public boolean hasChanged()Deprecated. -
redo
public void redo() throws javax.swing.undo.CannotRedoExceptionDeprecated.- Specified by:
redoin interfacejavax.swing.undo.UndoableEdit- Overrides:
redoin classjavax.swing.undo.UndoManager- Throws:
javax.swing.undo.CannotRedoException
-
redoTo
protected void redoTo(javax.swing.undo.UndoableEdit edit)Deprecated.- Overrides:
redoToin classjavax.swing.undo.UndoManager
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)Deprecated. -
reset
public void reset()Deprecated. -
trimEdits
protected void trimEdits(int from, int to)Deprecated.- Overrides:
trimEditsin classjavax.swing.undo.UndoManager
-
undo
public void undo() throws javax.swing.undo.CannotUndoExceptionDeprecated.- Specified by:
undoin interfacejavax.swing.undo.UndoableEdit- Overrides:
undoin classjavax.swing.undo.UndoManager- Throws:
javax.swing.undo.CannotUndoException
-
undoableEditHappened
public void undoableEditHappened(javax.swing.event.UndoableEditEvent uee)Deprecated.- Specified by:
undoableEditHappenedin interfacejavax.swing.event.UndoableEditListener- Overrides:
undoableEditHappenedin classjavax.swing.undo.UndoManager
-