UndoRedoUndoRedo.NONE rather than instantiating this.@Deprecated public static final class UndoRedo.Empty extends java.lang.Object implements UndoRedo
UndoRedo.Empty, UndoRedo.Manager, UndoRedo.Provider| Constructor | Description |
|---|---|
Empty() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addChangeListener(javax.swing.event.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.
|
java.lang.String |
getRedoPresentationName() |
Deprecated.
Get a human-presentable name describing the
redo operation.
|
java.lang.String |
getUndoPresentationName() |
Deprecated.
Get a human-presentable name describing the
undo operation.
|
void |
redo() |
Deprecated.
Redo a previously undone edit.
|
void |
removeChangeListener(javax.swing.event.ChangeListener l) |
Deprecated.
Remove a change listener.
|
void |
undo() |
Deprecated.
Undo an edit.
|
public boolean canUndo()
UndoRedopublic boolean canRedo()
UndoRedopublic void undo()
throws javax.swing.undo.CannotUndoException
UndoRedopublic void redo()
throws javax.swing.undo.CannotRedoException
UndoRedopublic void addChangeListener(javax.swing.event.ChangeListener l)
UndoRedoaddChangeListener in interface UndoRedol - the listener to addpublic void removeChangeListener(javax.swing.event.ChangeListener l)
UndoRedoremoveChangeListener in interface UndoRedol - the listener to removeUndoRedo.addChangeListener(javax.swing.event.ChangeListener)public java.lang.String getUndoPresentationName()
UndoRedogetUndoPresentationName in interface UndoRedopublic java.lang.String getRedoPresentationName()
UndoRedogetRedoPresentationName in interface UndoRedoBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.