ICommandable class
An interface for commandable objects, which are part of the command design pattern.
The commandable object exposes its functonality as commands and events groupped
into a CommandSet CommandSet
.
This interface is typically implemented by controllers and is used to auto generate
external interfaces.
See CommandSet
Example
class MyDataController implements ICommandable, IMyDataController {
MyDataCommandSet _commandSet;
CommandSet getCommandSet() {
if (_commandSet == null)
_commandSet = MyDataCommandSet(this);
return _commandSet;
}
...
}
See CommandSet examples
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
getCommandSet(
) → CommandSet - Gets a command set with all supported commands and events. Returns a command set with commands and events. See CommandSet
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited