Package | org.spicefactory.lib.command.flow |
Interface | public interface CommandFlow extends CommandExecutor, SuspendableCommand, CancellableCommand |
Implementors | DefaultCommandFlow |
For creating a simple linear sequence of commands you should create
a CommandGroup
instead.
Method | Defined By | ||
---|---|---|---|
Adds a command and associated link to this flow. | CommandFlow | ||
cancel():void
Cancels the command. | CancellableCommand | ||
Method that may be called by frameworks before executing this command to hook
into the lifecycle and data handling of this executor. | CommandExecutor | ||
resume():void
Resumes the command. | SuspendableCommand | ||
setDefaultLink(link:CommandLink):void
Sets the default link to use when a command in the flow
has no matching link. | CommandFlow | ||
suspend():void
Suspends the command. | SuspendableCommand |
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
|