|
org.openide.awt 7.31.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
javax.swing.undo.UndoManager
org.openide.awt.UndoRedo.Manager
public static class UndoRedo.Manager
An undo manager which fires a change event each time it consumes a new undoable edit.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.openide.awt.UndoRedo |
|---|
UndoRedo.Empty, UndoRedo.Manager, UndoRedo.Provider |
| Field Summary |
|---|
| Fields inherited from class javax.swing.undo.CompoundEdit |
|---|
edits |
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
RedoName, UndoName |
| Fields inherited from interface org.openide.awt.UndoRedo |
|---|
NONE |
| Constructor Summary | |
|---|---|
UndoRedo.Manager()
|
|
| Method Summary | |
|---|---|
void |
addChangeListener(ChangeListener l)
Add a change listener. |
void |
discardAllEdits()
Discard all the existing edits from the undomanager. |
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. |
void |
undoableEditHappened(UndoableEditEvent ue)
Consume an undoable edit. |
void |
undoOrRedo()
|
| Methods inherited from class javax.swing.undo.UndoManager |
|---|
addEdit, canRedo, canUndo, canUndoOrRedo, editToBeRedone, editToBeUndone, end, getLimit, getUndoOrRedoPresentationName, redoTo, setLimit, toString, trimEdits, trimForLimit, undoTo |
| Methods inherited from class javax.swing.undo.CompoundEdit |
|---|
die, getPresentationName, isInProgress, isSignificant, lastEdit |
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
replaceEdit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openide.awt.UndoRedo |
|---|
canRedo, canUndo |
| Constructor Detail |
|---|
public UndoRedo.Manager()
| Method Detail |
|---|
public void undoableEditHappened(UndoableEditEvent ue)
undoableEditHappened in interface UndoableEditListenerundoableEditHappened in class UndoManagerue - the editpublic void discardAllEdits()
discardAllEdits in class UndoManager
public void undo()
throws CannotUndoException
UndoRedo
undo in interface UndoableEditundo in interface UndoRedoundo in class UndoManagerCannotUndoException - if it fails
public void redo()
throws CannotRedoException
UndoRedo
redo in interface UndoableEditredo in interface UndoRedoredo in class UndoManagerCannotRedoException - if it fails
public void undoOrRedo()
throws CannotRedoException,
CannotUndoException
undoOrRedo in class UndoManagerCannotRedoException
CannotUndoExceptionpublic void addChangeListener(ChangeListener l)
UndoRedo
addChangeListener in interface UndoRedol - the listener to addpublic void removeChangeListener(ChangeListener l)
UndoRedo
removeChangeListener in interface UndoRedol - the listener to removeUndoRedo.addChangeListener(javax.swing.event.ChangeListener)public String getUndoPresentationName()
UndoRedo
getUndoPresentationName in interface UndoableEditgetUndoPresentationName in interface UndoRedogetUndoPresentationName in class UndoManagerpublic String getRedoPresentationName()
UndoRedo
getRedoPresentationName in interface UndoableEditgetRedoPresentationName in interface UndoRedogetRedoPresentationName in class UndoManager
|
org.openide.awt 7.31.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||