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