Class mindmaps.Command
Defined in: Command.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Creates a new command.
|
Field Attributes | Field Name and Description |
---|---|
<private> |
Method Attributes | Method Name and Description |
---|---|
execute()
Executes the command.
|
|
<private> |
handler()
The handler function.
|
Removes the current handler.
|
|
setEnabled(enabled)
Sets the enabled state of the command.
|
|
setHandler(handler)
Registers a new handler.
|
Field Detail
<private>
enabled
Method Detail
execute()
Executes the command. Tries to call the handler function.
<private>
handler()
The handler function.
removeHandler()
Removes the current handler.
setEnabled(enabled)
Sets the enabled state of the command.
- Parameters:
- {Boolean} enabled
setHandler(handler)
Registers a new handler.
- Parameters:
- {Function} handler