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- 
Fields inherited from class javax.swing.undo.CompoundEditedits
 - 
Fields inherited from class javax.swing.undo.AbstractUndoableEditRedoName, UndoName
 
- 
 - 
Constructor SummaryConstructors Constructor Description TextUndoManager()Deprecated.Creates a new instance of TextUndoManager.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods 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.UndoManageraddEdit, canRedo, canUndo, canUndoOrRedo, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, setLimit, toString, trimForLimit, undoOrRedo, undoTo
 - 
Methods inherited from class javax.swing.undo.CompoundEditgetPresentationName, isInProgress, isSignificant, lastEdit
 - 
Methods inherited from class javax.swing.undo.AbstractUndoableEditreplaceEdit
 
- 
 
- 
- 
- 
Method Detail- 
addPropertyChangeListenerpublic void addPropertyChangeListener(PropertyChangeListener pcl) Deprecated.
 - 
diepublic void die() Deprecated.- Specified by:
- diein interface- UndoableEdit
- Overrides:
- diein class- CompoundEdit
 
 - 
discardAllEditspublic void discardAllEdits() Deprecated.- Overrides:
- discardAllEditsin class- UndoManager
 
 - 
firePropertyChangeEventprotected void firePropertyChangeEvent(String name, boolean oldValue, boolean newValue) Deprecated.
 - 
hasChangedpublic boolean hasChanged() Deprecated.
 - 
redopublic void redo() throws CannotRedoExceptionDeprecated.- Specified by:
- redoin interface- UndoableEdit
- Overrides:
- redoin class- UndoManager
- Throws:
- CannotRedoException
 
 - 
redoToprotected void redoTo(UndoableEdit edit) Deprecated.- Overrides:
- redoToin class- UndoManager
 
 - 
removePropertyChangeListenerpublic void removePropertyChangeListener(PropertyChangeListener pcl) Deprecated.
 - 
resetpublic void reset() Deprecated.
 - 
trimEditsprotected void trimEdits(int from, int to)Deprecated.- Overrides:
- trimEditsin class- UndoManager
 
 - 
undopublic void undo() throws CannotUndoExceptionDeprecated.- Specified by:
- undoin interface- UndoableEdit
- Overrides:
- undoin class- UndoManager
- Throws:
- CannotUndoException
 
 - 
undoableEditHappenedpublic void undoableEditHappened(UndoableEditEvent uee) Deprecated.- Specified by:
- undoableEditHappenedin interface- UndoableEditListener
- Overrides:
- undoableEditHappenedin class- UndoManager
 
 
- 
 
-