Package | org.spicefactory.parsley.core.command |
Interface | public interface ObservableCommand |
Property | Defined By | ||
---|---|---|---|
command : Object [read-only]
The actual command instance. | ObservableCommand | ||
id : String [read-only]
The id the command is registered with in the Context. | ObservableCommand | ||
result : Object [read-only]
The result produced by the command. | ObservableCommand | ||
root : Boolean [read-only]
Indicates whether this command is a root command or a nested command. | ObservableCommand | ||
status : CommandStatus [read-only]
The status of the command. | ObservableCommand | ||
trigger : Message [read-only]
The message that triggered the command. | ObservableCommand | ||
type : ClassInfo [read-only]
The type of the command. | ObservableCommand |
Method | Defined By | ||
---|---|---|---|
observe(callback:Function):void
Observes the completion of this command, no matter whether it successfully completes,
aborts with an error or gets cancelled. | ObservableCommand |
command | property |
command:Object
[read-only] The actual command instance.
public function get command():Object
id | property |
id:String
[read-only] The id the command is registered with in the Context.
public function get id():String
result | property |
result:Object
[read-only] The result produced by the command.
public function get result():Object
root | property |
root:Boolean
[read-only] Indicates whether this command is a root command or a nested command. This property is true if the command is a simple standalone command or the root command of a sequence or flow. It is flow if it is a command nested in a sequence or flow.
public function get root():Boolean
status | property |
status:CommandStatus
[read-only] The status of the command.
public function get status():CommandStatus
trigger | property |
trigger:Message
[read-only] The message that triggered the command. This property is null when the command was started programmatically.
public function get trigger():Message
type | property |
type:ClassInfo
[read-only] The type of the command.
public function get type():ClassInfo
observe | () | method |
public function observe(callback:Function):void
Observes the completion of this command, no matter whether it successfully completes, aborts with an error or gets cancelled. The callback function must accept an argument of type ObservableCommand.
Parameters
callback:Function — the callback to invoke when the command completes
|