|
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 UndoableEditListener
undoableEditHappened
in class UndoManager
ue
- the editpublic void discardAllEdits()
discardAllEdits
in class UndoManager
public void undo() throws CannotUndoException
UndoRedo
undo
in interface UndoableEdit
undo
in interface UndoRedo
undo
in class UndoManager
CannotUndoException
- if it failspublic void redo() throws CannotRedoException
UndoRedo
redo
in interface UndoableEdit
redo
in interface UndoRedo
redo
in class UndoManager
CannotRedoException
- if it failspublic void undoOrRedo() throws CannotRedoException, CannotUndoException
undoOrRedo
in class UndoManager
CannotRedoException
CannotUndoException
public 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 UndoableEdit
getUndoPresentationName
in interface UndoRedo
getUndoPresentationName
in class UndoManager
public String getRedoPresentationName()
UndoRedo
getRedoPresentationName
in interface UndoableEdit
getRedoPresentationName
in interface UndoRedo
getRedoPresentationName
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 |