|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UndoManager
UndoManager manages a list of undo actions, providing a way to
undo or redo the appropriate edits.
A built-in implementation of this class is provided. Users to not need to
implement this interface. A PDFNotesBean contains an instance of
the UndoManager and can be referenced with
PDFNotesBean.getUndoManager().
PDFNotesBean.getUndoManager()| Method Summary | |
|---|---|
void |
addUndoListener(UndoListener listener)
Registers an UndoListener to be notified when the undo
action list is modified. |
void |
clearUndoList()
Clears the undo list. |
UndoAction |
getNextRedoAction()
Returns the next redo UndoAction. |
UndoAction |
getNextUndoAction()
Returns the next undo UndoAction. |
void |
redo()
Causes the next redo UndoAction to be executed. |
void |
setEnabled(boolean enabled)
Enables or disables the UndoManager. |
void |
undo()
Causes the next undo UndoAction to be executed. |
| Method Detail |
|---|
void addUndoListener(UndoListener listener)
UndoListener to be notified when the undo
action list is modified.
listener - the UndoListener to registervoid undo()
UndoAction to be executed.
void redo()
UndoAction to be executed.
void clearUndoList()
void setEnabled(boolean enabled)
UndoManager. When the
UndoManager is disabled, the undo list is also cleared.
enabled - if true the UndoManager will be enabled, false
otherwiseUndoAction getNextUndoAction()
UndoAction.
UndoActionUndoAction getNextRedoAction()
UndoAction.
UndoAction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||