|
com.ideanest.swing
|
Constructor Summary | |
ActiveUndoManager()
|
|
ActiveUndoManager(int limit)
|
Method Summary | |
void |
addEdit(javax.swing.undo.UndoableEdit edit)
Add an edit to the manager. |
void |
clear()
|
ActiveList |
getEdits()
Return the list of all edits currently buffered by this undo manager. |
int |
getLimit()
Return the maximum size of the edit list, including both significant and insignificant edits. |
ActiveList |
getRedoableEdits()
Return the list of significant redoable edits. |
int |
getSplitIndex()
Return the index where the next edit to be added would be stored in the edits list. |
ActiveList |
getUndoableEdits()
Return the list of significant undoable edits. |
void |
redo()
Redo up to and including the first significant event in the buffer. |
void |
redoTo(javax.swing.undo.UndoableEdit edit)
Redo up to and including the given edit. |
void |
setLimit(int limit)
Set the maximum size of the edit list, including both significant and insignificant edits. |
void |
undo()
Undo up to and including the first significant event in the buffer. |
void |
undoableEditHappened(javax.swing.event.UndoableEditEvent ev)
|
void |
undoTo(javax.swing.undo.UndoableEdit edit)
Undo up to and including the given edit. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActiveUndoManager()
public ActiveUndoManager(int limit)
Method Detail |
public void addEdit(javax.swing.undo.UndoableEdit edit)
java.lang.IllegalStateException
- if an undo or redo operation is currently in progresspublic void clear()
public ActiveList getEdits()
public int getLimit()
public ActiveList getRedoableEdits()
public int getSplitIndex()
public ActiveList getUndoableEdits()
public void redo()
javax.swing.undo.CannotRedoException
- if there are no events to redo at allpublic void redoTo(javax.swing.undo.UndoableEdit edit)
edit
- the edit up to which to redo
java.util.NoSuchElementException
- if the given edit is not in the buffer or is after the split indexpublic void setLimit(int limit)
public void undo()
javax.swing.undo.CannotUndoException
- if there are no events to undo at allpublic void undoableEditHappened(javax.swing.event.UndoableEditEvent ev)
undoableEditHappened
in interface javax.swing.event.UndoableEditListener
public void undoTo(javax.swing.undo.UndoableEdit edit)
edit
- the edit up to which to undo
java.util.NoSuchElementException
- if the given edit is not in the buffer or is after the split index
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |