Class mindmaps.UndoController
Defined in: UndoController.js.
Constructor Attributes | Constructor Name and Description |
---|---|
mindmaps.UndoController(eventBus, commandRegistry)
Creates a new UndoController.
|
Method Attributes | Method Name and Description |
---|---|
addUndo(undoFunc, redoFunc)
|
|
Handler for document closed event.
|
|
Handler for document opened event.
|
|
doRedo()
Handler for redo command.
|
|
doUndo()
Handler for undo command.
|
|
<private> |
init()
Initialise.
|
Handler for state changed event from undo manager.
|
Class Detail
mindmaps.UndoController(eventBus, commandRegistry)
Creates a new UndoController. The undo controller manages an instance of
UndoManager and delegates all undo and redo commands to the undo manager.
- Parameters:
- {mindmaps.EventBus} eventBus
- {mindmaps.CommandRegistry} commandRegistry
Method Detail
addUndo(undoFunc, redoFunc)
- Parameters:
- undoFunc
- redoFunc
- See:
- mindmaps.UndoManager#addUndo
documentClosed()
Handler for document closed event.
documentOpened()
Handler for document opened event.
doRedo()
Handler for redo command.
doUndo()
Handler for undo command.
<private>
init()
Initialise.
undoStateChanged()
Handler for state changed event from undo manager.