UndoRedo.NONE
rather than instantiating this.@Deprecated public static final class UndoRedo.Empty extends Object implements UndoRedo
UndoRedo.Empty, UndoRedo.Manager, UndoRedo.Provider
Constructor and Description |
---|
Empty()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public boolean canUndo()
UndoRedo
public boolean canRedo()
UndoRedo
public 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