Package | org.spicefactory.lib.command.flow |
Class | public class DefaultCommandFlow |
Inheritance | DefaultCommandFlow AbstractCommandExecutor AbstractSuspendableCommand AbstractCancellableCommand AbstractAsyncCommand flash.events.EventDispatcher |
Implements | CommandFlow |
Method | Defined By | ||
---|---|---|---|
DefaultCommandFlow(description:String = null)
Creates a new flow instance. | DefaultCommandFlow | ||
addData(value:Object):void
Adds a value to this executor that can get passed to any command
executed by this instance. | AbstractCommandExecutor | ||
Adds a command and associated link to this flow. | DefaultCommandFlow | ||
cancel():void
Cancels the command. | AbstractCancellableCommand | ||
execute():void
Starts the execution of this command. | AbstractAsyncCommand | ||
Method that may be called by frameworks before executing this command to hook
into the lifecycle and data handling of this executor. | AbstractCommandExecutor | ||
resume():void
Resumes the command. | AbstractSuspendableCommand | ||
setDefaultLink(link:CommandLink):void
Sets the default link to use when a command in the flow
has no matching link. | DefaultCommandFlow | ||
suspend():void
Suspends the command. | AbstractSuspendableCommand |
DefaultCommandFlow | () | Constructor |
public function DefaultCommandFlow(description:String = null)
Creates a new flow instance.
Parametersdescription:String (default = null ) — a description of the flow
|
addLink | () | method |
public function addLink(command:Command, link:CommandLink):void
Adds a command and associated link to this flow. The link is invoked after the specified command finished executing and should determine the next command to execute (or end the flow execution).
The first invocation of this method also specifies the first command to execute in this flow.
Parameters
command:Command — the command to add to the flow
| |
link:CommandLink — the link associated with the command
|
setDefaultLink | () | method |
public function setDefaultLink(link:CommandLink):void
Sets the default link to use when a command in the flow has no matching link.
Parameters
link:CommandLink — the default link to use when a command in the flow
has no matching link
|