public static class UndoRedo.Manager extends UndoManager implements UndoRedo
UndoRedo.Empty, UndoRedo.Manager, UndoRedo.ProvidereditsRedoName, UndoName| Constructor and Description |
|---|
Manager() |
| Modifier and Type | Method and Description |
|---|---|
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() |
addEdit, canRedo, canUndo, canUndoOrRedo, editToBeRedone, editToBeUndone, end, getLimit, getUndoOrRedoPresentationName, redoTo, setLimit, toString, trimEdits, trimForLimit, undoTodie, getPresentationName, isInProgress, isSignificant, lastEditreplaceEditpublic void undoableEditHappened(UndoableEditEvent ue)
undoableEditHappened in interface UndoableEditListenerundoableEditHappened in class UndoManagerue - the editpublic void discardAllEdits()
discardAllEdits in class UndoManagerpublic void undo()
throws CannotUndoException
UndoRedoundo in interface UndoableEditundo in interface UndoRedoundo in class UndoManagerCannotUndoException - if it failspublic void redo()
throws CannotRedoException
UndoRedoredo in interface UndoableEditredo in interface UndoRedoredo in class UndoManagerCannotRedoException - if it failspublic void undoOrRedo()
throws CannotRedoException,
CannotUndoException
undoOrRedo in class UndoManagerCannotRedoExceptionCannotUndoExceptionpublic 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 UndoableEditgetUndoPresentationName in interface UndoRedogetUndoPresentationName in class UndoManagerpublic String getRedoPresentationName()
UndoRedogetRedoPresentationName in interface UndoableEditgetRedoPresentationName in interface UndoRedogetRedoPresentationName in class UndoManagerBuilt on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.