public class AccessibleUndoManager extends UndoManager
UndoManager
that allows to access all edit objects contained in the underlying list.edits
RedoName, UndoName
Constructor and Description |
---|
AccessibleUndoManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(UndoableEdit edit) |
int |
firstRedoPosition()
Returns the position of the edit to redone next.
|
int |
firstUndoPosition()
Returns the position of the edit to undone next.
|
UndoableEdit |
getEdit(int pos) |
UndoableEdit |
getRedoEdit(int pos)
Returns the specified redo edit where the first to be redone has the index 0.
|
UndoableEdit |
getUndoEdit(int pos)
Returns the specified undo edit where the first to be undone has the index 0.
|
int |
redoCount() |
void |
redoTo(UndoableEdit edit) |
int |
undoCount() |
void |
undoTo(UndoableEdit edit) |
addEdit, canRedo, canUndo, canUndoOrRedo, discardAllEdits, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, redo, setLimit, toString, trimEdits, trimForLimit, undo, undoableEditHappened, undoOrRedo
die, getPresentationName, isInProgress, isSignificant, lastEdit
replaceEdit
public AccessibleUndoManager()
public int firstUndoPosition()
public int firstRedoPosition()
public int undoCount()
public int redoCount()
public UndoableEdit getEdit(int pos)
public UndoableEdit getUndoEdit(int pos)
pos
- public UndoableEdit getRedoEdit(int pos)
pos
- public void redoTo(UndoableEdit edit) throws CannotRedoException
redoTo
in class UndoManager
CannotRedoException
public void undoTo(UndoableEdit edit) throws CannotUndoException
undoTo
in class UndoManager
CannotUndoException
public boolean contains(UndoableEdit edit)