|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openide.awt.UndoRedo.Empty
UndoRedo.NONE
rather than instantiating this.
Empty implementation that does not support any undoable edits.
Nested Class Summary |
Nested classes inherited from class org.openide.awt.UndoRedo |
UndoRedo.Empty, UndoRedo.Manager |
Field Summary |
Fields inherited from interface org.openide.awt.UndoRedo |
NONE |
Constructor Summary | |
UndoRedo.Empty()
Deprecated. |
Method Summary | |
void |
addChangeListener(ChangeListener l)
Deprecated. Add a change listener. |
boolean |
canRedo()
Deprecated. Test whether the component currently has undone edits which may be redone. |
boolean |
canUndo()
Deprecated. Test whether the component currently has edits which may be undone. |
String |
getRedoPresentationName()
Deprecated. Get a human-presentable name describing the redo operation. |
String |
getUndoPresentationName()
Deprecated. Get a human-presentable name describing the undo operation. |
void |
redo()
Deprecated. Redo a previously undone edit. |
void |
removeChangeListener(ChangeListener l)
Deprecated. Remove a change listener. |
void |
undo()
Deprecated. Undo an edit. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UndoRedo.Empty()
Method Detail |
public boolean canUndo()
UndoRedo
canUndo
in interface UndoRedo
true
if undo is allowedpublic boolean canRedo()
UndoRedo
canRedo
in interface UndoRedo
true
if redo is allowedpublic void undo() throws CannotUndoException
UndoRedo
undo
in interface UndoRedo
CannotUndoException
- if it failspublic void redo() throws CannotRedoException
UndoRedo
redo
in interface UndoRedo
CannotRedoException
- if it failspublic void addChangeListener(ChangeListener l)
UndoRedo
addChangeListener
in interface UndoRedo
l
- the listener to addpublic void removeChangeListener(ChangeListener l)
UndoRedo
removeChangeListener
in interface UndoRedo
l
- the listener to removeUndoRedo.addChangeListener(javax.swing.event.ChangeListener)
public String getUndoPresentationName()
UndoRedo
getUndoPresentationName
in interface UndoRedo
public String getRedoPresentationName()
UndoRedo
getRedoPresentationName
in interface UndoRedo
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |