Package | org.spicefactory.lib.command.group |
Class | public class CommandSequence |
Inheritance | CommandSequence AbstractCommandExecutor AbstractSuspendableCommand AbstractCancellableCommand AbstractAsyncCommand flash.events.EventDispatcher |
Implements | CommandGroup |
COMPLETE
event. If the sequence gets cancelled or suspended the currently active child
command will also be cancelled or suspended in turn.
If a child command throws an ERROR
event and the skipErrors
property
of this sequence is set to false, then the sequence will fire an ERROR
event
and will not execute its remaining child commands.
Method | Defined By | ||
---|---|---|---|
CommandSequence(description:String = null, skipErrors:Boolean = false, skipCancelllations:Boolean = false)
Creates a new sequence. | CommandSequence | ||
addCommand(command:Command):void
Adds a command to this group. | CommandSequence | ||
addData(value:Object):void
Adds a value to this executor that can get passed to any command
executed by this instance. | AbstractCommandExecutor | ||
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 | ||
suspend():void
Suspends the command. | AbstractSuspendableCommand |
CommandSequence | () | Constructor |
public function CommandSequence(description:String = null, skipErrors:Boolean = false, skipCancelllations:Boolean = false)
Creates a new sequence.
Parametersdescription:String (default = null ) — a description of this command sequence
| |
skipErrors:Boolean (default = false ) — if true an error in a command executed by this instance leads to commandComplete getting called,
if false the executor will stop with an error result
| |
skipCancelllations:Boolean (default = false ) — if true the cancelleation of a command executed by this instance leads
to commandComplete getting called, if false the executor will stop with an error result
|
addCommand | () | method |
public function addCommand(command:Command):void
Adds a command to this group.
Parameters
command:Command — the command to add to this group
|