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()
UndoRedopublic boolean canRedo()
UndoRedopublic void undo()
throws CannotUndoException
UndoRedoundo in interface UndoRedoCannotUndoException - if it failspublic void redo()
throws CannotRedoException
UndoRedoredo in interface UndoRedoCannotRedoException - if it failspublic void addChangeListener(ChangeListener l)
UndoRedoaddChangeListener in interface UndoRedol - the listener to addpublic void removeChangeListener(ChangeListener l)
UndoRedoremoveChangeListener in interface UndoRedol - the listener to removeUndoRedo.addChangeListener(javax.swing.event.ChangeListener)public String getUndoPresentationName()
UndoRedogetUndoPresentationName in interface UndoRedopublic String getRedoPresentationName()
UndoRedogetRedoPresentationName in interface UndoRedoBuilt on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.