org.openide.awt
Class UndoRedo.Empty
java.lang.Object
|
+--org.openide.awt.UndoRedo.Empty
- All Implemented Interfaces:
- UndoRedo
- Enclosing class:
- UndoRedo
- public static final class UndoRedo.Empty
- extends Object
- implements UndoRedo
Empty implementation that does not support any undoable edits.
Use UndoRedo.NONE
rather than instantiating this.
Fields inherited from interface org.openide.awt.UndoRedo |
NONE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UndoRedo.Empty
public UndoRedo.Empty()
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
- Following copied from interface:
org.openide.awt.UndoRedo
- Returns:
true
if undo is allowed
canRedo
public boolean canRedo()
- Description copied from interface:
UndoRedo
- Test whether the component currently has undone edits which may be redone.
- Specified by:
canRedo
in interface UndoRedo
- Following copied from interface:
org.openide.awt.UndoRedo
- Returns:
true
if redo is allowed
undo
public void undo()
throws CannotUndoException
- Description copied from interface:
UndoRedo
- Undo an edit.
- Specified by:
undo
in interface UndoRedo
- Following copied from interface:
org.openide.awt.UndoRedo
- Throws:
CannotUndoException
- if it fails
redo
public void redo()
throws CannotRedoException
- Description copied from interface:
UndoRedo
- Redo a previously undone edit.
- Specified by:
redo
in interface UndoRedo
- Following copied from interface:
org.openide.awt.UndoRedo
- Throws:
CannotRedoException
- if it fails
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
- 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
- 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.