org.openide.awt
Class  UndoRedo.Manager
java.lang.Object
  |
  +--javax.swing.undo.AbstractUndoableEdit
        |
        +--javax.swing.undo.CompoundEdit
              |
              +--javax.swing.undo.UndoManager
                    |
                    +--org.openide.awt.UndoRedo.Manager
- All Implemented Interfaces: 
 - EventListener, Serializable, UndoableEdit, UndoableEditListener, UndoRedo
 
- Enclosing class: 
 - UndoRedo
 
- public static class UndoRedo.Manager
- extends UndoManager
- implements UndoRedo
   
An undo manager which fires a change event each time it consumes a new undoable edit.
- See Also: 
 - Serialized Form
 
 
 
 
| Fields inherited from interface org.openide.awt.UndoRedo | 
NONE | 
 
 
 
| Methods inherited from class javax.swing.undo.UndoManager | 
addEdit, canRedo, canUndoOrRedo, editToBeRedone, editToBeUndone, end, getLimit, getUndoOrRedoPresentationName, redo, redoTo, setLimit, toString, trimEdits, trimForLimit, undo, undoOrRedo, undoTo | 
 
 
 
 
 
UndoRedo.Manager
public UndoRedo.Manager()
undoableEditHappened
public void undoableEditHappened(UndoableEditEvent ue)
- Consume an undoable edit.
 Delegates to superclass and notifies listeners.
- Overrides:
 undoableEditHappened in class UndoManager
 
- Parameters:
 ue - the edit
 
 
discardAllEdits
public void discardAllEdits()
- Discard all the existing edits from the undomanager.
- Overrides:
 discardAllEdits in class UndoManager
 
 
canUndo
public boolean canUndo()
- Description copied from interface: 
UndoRedo 
- Test whether the component currently has edits which may be undone.
- Specified by: 
 canUndo in interface UndoRedo- Overrides:
 canUndo in class UndoManager
 
- Following copied from interface: 
org.openide.awt.UndoRedo 
- Returns:
 true if undo is allowed
 
 
addChangeListener
public void addChangeListener(ChangeListener l)
- Description copied from interface: 
UndoRedo 
- Add a change listener.
 The listener will be notified every time the undo/redo
 ability of this object changes.
- Specified by: 
 addChangeListener in interface UndoRedo
 
- Following copied from interface: 
org.openide.awt.UndoRedo 
- Parameters:
 l - the listener to add
 
 
removeChangeListener
public void removeChangeListener(ChangeListener l)
- Description copied from interface: 
UndoRedo 
- Remove a change listener.
- Specified by: 
 removeChangeListener in interface UndoRedo
 
- Following copied from interface: 
org.openide.awt.UndoRedo 
- Parameters:
 l - the listener to remove- See Also: 
 UndoRedo.addChangeListener(javax.swing.event.ChangeListener)
 
 
getUndoPresentationName
public String getUndoPresentationName()
- Description copied from interface: 
UndoRedo 
- Get a human-presentable name describing the
 undo operation.
- Specified by: 
 getUndoPresentationName in interface UndoRedo- Overrides:
 getUndoPresentationName in class UndoManager
 
- Following copied from interface: 
org.openide.awt.UndoRedo 
- Returns:
 - the name
 
 
 
getRedoPresentationName
public String getRedoPresentationName()
- Description copied from interface: 
UndoRedo 
- Get a human-presentable name describing the
 redo operation.
- Specified by: 
 getRedoPresentationName in interface UndoRedo- Overrides:
 getRedoPresentationName in class UndoManager
 
- Following copied from interface: 
org.openide.awt.UndoRedo 
- Returns:
 - the name
 
 
 
Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.