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 SummaryFields inherited from class javax.swing.undo.CompoundEditeditsFields inherited from class javax.swing.undo.AbstractUndoableEditRedoName, UndoName
- 
Constructor SummaryConstructors Constructor Description TextUndoManager()Deprecated.Creates a new instance of TextUndoManager.
- 
Method SummaryModifier 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.UndoManageraddEdit, canRedo, canUndo, canUndoOrRedo, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, setLimit, toString, trimForLimit, undoOrRedo, undoToMethods inherited from class javax.swing.undo.CompoundEditgetPresentationName, isInProgress, isSignificant, lastEditMethods inherited from class javax.swing.undo.AbstractUndoableEditreplaceEditMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
- 
Constructor Details- 
TextUndoManagerpublic TextUndoManager()Deprecated.Creates a new instance of TextUndoManager.
 
- 
- 
Method Details- 
addPropertyChangeListenerpublic void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)Deprecated.
- 
diepublic void die()Deprecated.- Specified by:
- diein interface- javax.swing.undo.UndoableEdit
- Overrides:
- diein class- javax.swing.undo.CompoundEdit
 
- 
discardAllEditspublic void discardAllEdits()Deprecated.- Overrides:
- discardAllEditsin class- javax.swing.undo.UndoManager
 
- 
firePropertyChangeEventprotected void firePropertyChangeEvent(java.lang.String name, boolean oldValue, boolean newValue)Deprecated.
- 
hasChangedpublic boolean hasChanged()Deprecated.
- 
redopublic void redo() throws javax.swing.undo.CannotRedoExceptionDeprecated.- Specified by:
- redoin interface- javax.swing.undo.UndoableEdit
- Overrides:
- redoin class- javax.swing.undo.UndoManager
- Throws:
- javax.swing.undo.CannotRedoException
 
- 
redoToprotected void redoTo(javax.swing.undo.UndoableEdit edit)Deprecated.- Overrides:
- redoToin class- javax.swing.undo.UndoManager
 
- 
removePropertyChangeListenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)Deprecated.
- 
resetpublic void reset()Deprecated.
- 
trimEditsprotected void trimEdits(int from, int to)Deprecated.- Overrides:
- trimEditsin class- javax.swing.undo.UndoManager
 
- 
undopublic void undo() throws javax.swing.undo.CannotUndoExceptionDeprecated.- Specified by:
- undoin interface- javax.swing.undo.UndoableEdit
- Overrides:
- undoin class- javax.swing.undo.UndoManager
- Throws:
- javax.swing.undo.CannotUndoException
 
- 
undoableEditHappenedpublic void undoableEditHappened(javax.swing.event.UndoableEditEvent uee)Deprecated.- Specified by:
- undoableEditHappenedin interface- javax.swing.event.UndoableEditListener
- Overrides:
- undoableEditHappenedin class- javax.swing.undo.UndoManager
 
 
-