au.edu.swin.synergy.plugin.editmanager
Class BUndoManager
java.lang.Object
|
+--javax.swing.undo.AbstractUndoableEdit
|
+--javax.swing.undo.CompoundEdit
|
+--javax.swing.undo.UndoManager
|
+--au.edu.swin.synergy.plugin.editmanager.BUndoManager
- public class BUndoManager
- extends UndoManager
This will be the undo listener which needs to be informed
of all undo and redoable events. It will inform the edit
manager automatically when an event occurs so that the menu
is updated as required.
- Author:
- Tristan Austin
- See Also:
- Serialized Form
Method Summary |
void |
relinquishUndoManager()
This will remove the current undo manager if it is this one |
void |
setUndoManager()
Calling this method will make this undo manager the
current one in the edit manager so that any undo
calls by the user will occur in this manager. |
void |
undoableEditHappened(UndoableEditEvent undoEvent)
Undoable edit events indicate when an edit occurs
and contain the edit object which is placed in the history list. |
void |
unregisterUndoManager(Object source)
This will unregister this undo manager with the edit manager |
Methods inherited from class javax.swing.undo.UndoManager |
addEdit,
canRedo,
canUndo,
canUndoOrRedo,
discardAllEdits,
editToBeRedone,
editToBeUndone,
end,
getLimit,
getRedoPresentationName,
getUndoOrRedoPresentationName,
getUndoPresentationName,
redo,
redoTo,
setLimit,
toString,
trimEdits,
trimForLimit,
undo,
undoOrRedo,
undoTo |
BUndoManager
public BUndoManager(BEditManager editManager)
- Creates a new undo manager with the given edt manager
- Parameters:
editManager
- The manager
undoableEditHappened
public void undoableEditHappened(UndoableEditEvent undoEvent)
- Undoable edit events indicate when an edit occurs
and contain the edit object which is placed in the history list.
This will inform the edit manager of the event so that it can update the
interface as required.
- Parameters:
undoEvent
- The undo event- Overrides:
- undoableEditHappened in class UndoManager
setUndoManager
public void setUndoManager()
- Calling this method will make this undo manager the
current one in the edit manager so that any undo
calls by the user will occur in this manager.
relinquishUndoManager
public void relinquishUndoManager()
- This will remove the current undo manager if it is this one
unregisterUndoManager
public void unregisterUndoManager(Object source)
- This will unregister this undo manager with the edit manager