|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UndoManager
Interface to the IDES UndoManager. The manager is responsible for undoing and redoing undoable actions. It automatically manages the undo stacks for the many models that may be opened in a workspace. Registered UI elements are automatically updated with the changing status of the undo system.
| Method Summary | |
|---|---|
void |
addEdit(DESModel model,
javax.swing.undo.UndoableEdit edit)
Adds an UndoableEdit to the undo stack of the specified model, if the model is loaded in the workspace. |
void |
addEdit(javax.swing.undo.UndoableEdit edit)
Adds an UndoableEdit to the undo stack of the active model. |
void |
bindNoTextRedo(javax.swing.AbstractButton element)
Registers an AbstractButton to be updated when the undo state
changes. |
void |
bindNoTextUndo(javax.swing.AbstractButton element)
Registers an AbstractButton to be updated when the undo state
changes. |
void |
bindRedo(javax.swing.AbstractButton element)
Registers an AbstractButton to be updated when the undo state
changes. |
void |
bindUndo(javax.swing.AbstractButton element)
Registers an AbstractButton to be updated when the undo state
changes. |
javax.swing.AbstractAction |
getRedoAction()
Returns an action which redoes the last undone entry in the undo manager, if any. |
javax.swing.AbstractAction |
getUndoAction()
Returns an action which undoes the last entry in the undo manager, if any. |
void |
unbind(javax.swing.AbstractButton element)
Unregisters an AbstractButton so that it is no longer updated
when the undo state changes. |
| Method Detail |
|---|
void addEdit(javax.swing.undo.UndoableEdit edit)
void addEdit(DESModel model,
javax.swing.undo.UndoableEdit edit)
model - model in whose undo stack the edit should be addededit - the edit to be added in the undo stackvoid bindUndo(javax.swing.AbstractButton element)
AbstractButton to be updated when the undo state
changes. The text of the UI element will be updated.
element - the UI element to be registered for automatic updatesvoid bindNoTextUndo(javax.swing.AbstractButton element)
AbstractButton to be updated when the undo state
changes. The text of the UI element will not be updated.
element - the UI element to be registered for automatic updatesvoid bindRedo(javax.swing.AbstractButton element)
AbstractButton to be updated when the undo state
changes. The text of the UI element will be updated.
element - the UI element to be registered for automatic updatesvoid bindNoTextRedo(javax.swing.AbstractButton element)
AbstractButton to be updated when the undo state
changes. The text of the UI element will not be updated.
element - the UI element to be registered for automatic updatesvoid unbind(javax.swing.AbstractButton element)
AbstractButton so that it is no longer updated
when the undo state changes.
element - the UI element to be unregistered from automatic updatesjavax.swing.AbstractAction getUndoAction()
javax.swing.AbstractAction getRedoAction()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||