ICommandable class abstract
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. 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.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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 nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited