|
org.openide.awt 6.7.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UndoRedo
Undo and Redo manager for top components and workspace elements.
It allows UndoAction
and RedoAction
to listen to editing changes of active
components and to changes in their ability to do undo and redo.
Related links:
Nested Class Summary | |
---|---|
static class |
UndoRedo.Empty
Deprecated. Use NONE rather than instantiating this. |
static class |
UndoRedo.Manager
An undo manager which fires a change event each time it consumes a new undoable edit. |
Field Summary | |
---|---|
static UndoRedo |
NONE
Empty implementation that does not allow any undo or redo actions. |
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener l)
Add a change listener. |
boolean |
canRedo()
Test whether the component currently has undone edits which may be redone. |
boolean |
canUndo()
Test whether the component currently has edits which may be undone. |
String |
getRedoPresentationName()
Get a human-presentable name describing the redo operation. |
String |
getUndoPresentationName()
Get a human-presentable name describing the undo operation. |
void |
redo()
Redo a previously undone edit. |
void |
removeChangeListener(ChangeListener l)
Remove a change listener. |
void |
undo()
Undo an edit. |
Field Detail |
---|
static final UndoRedo NONE
Method Detail |
---|
boolean canUndo()
true
if undo is allowedboolean canRedo()
true
if redo is allowedvoid undo() throws CannotUndoException
CannotUndoException
- if it failsvoid redo() throws CannotRedoException
CannotRedoException
- if it failsvoid addChangeListener(ChangeListener l)
l
- the listener to addvoid removeChangeListener(ChangeListener l)
l
- the listener to removeaddChangeListener(javax.swing.event.ChangeListener)
String getUndoPresentationName()
String getRedoPresentationName()
|
org.openide.awt 6.7.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |