Initializes a new instance of the Command class.
The name of this command.
The {@link application.Application} that this command belongs to.
An optional string, either any or all.
A canExecuteMode
of any will prevent the command from running if any of the constituent implementations return false in their canExecute
delegate.
A canExecuteMode
of all (the default) will only prevent the command from running if all of the constituent canExecute
delegates return false.
Event raised when the command's can execute status may have changed.
The {@link geocortex.framework.application.Application} that this command instance belongs to.
Execute mode for the command. One of:
Whether this command is a wrapper command or not. A wrapper command is one that has been created as a result of something trying to execute it, despite not having been created previously.
The name of this command.
Event raised when execute has been called on the command and at least one implementation has executed.
Event raised when execute has been called on the command and at least one implementation is about to execute.
Returns true or false based on whether this command can execute or not. In the case of a canExecute triggering a deferred module load this will return false initially, but 'raiseCanExecuteChanged' will be called after the module loads.
0 or more parameters to evaluate canExecute with.
Clears this command of all implementations.
Executes this command. If multiple implementations have been registered, they are executed sequentially.
0 or more parameters to pass to the command.
Raises the canExecuteChanged event.
Registers a command implementation that executes in a specific scope and with optional canExecute logic.
The scope of which to execute the command implementation.
The implementation to add to this command/
An optional canExecute method to decide whether this command fragment can execute or not.
Removes a command implementation from this command, using the token returned when the implementation was registered.
The token that was returned when the command implementation was registered.
Command provides a general purpose, loosely coupled command model. A command can have 0 or more implementations registered to it.