GODPAPER | All Packages | All Classes | Index | Frames No Frames |
SequenceTask

Package | com.adobe.cairngorm.task
Class | public class SequenceTask
Inheritance | SequenceTask TaskGroup Task flash.events.EventDispatcher

A task group that processes its children in sequence. The next child is started only when the previous child completes.

Default MXML Property `children`

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | children : Array | TaskGroup
|  | currentState : String [read-only] | Task
|  | enabled : Boolean | Task
|  | label : String | Task
|  | processed : uint [read-only] | TaskGroup
|  | size : uint [read-only] | TaskGroup

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | SequenceTask() | SequenceTask
|  | addChild(child:ITask):void | TaskGroup
|  | removeChild(child:ITask):void | TaskGroup
|  | start():void | Task

Protected Methods
Show Inherited Protected Methods
Show Inherited Protected Methods

| Method | Defined By
--- | --- | ---
|  | complete():void This should be called by a concrete sub-class to indicate that the task has been completed. | Task
|  | fault(message:String = null):void This should be called by a concrete sub-class to indicate that the task has been halted due to a fault. | Task
|  | onChildTaskComplete(event:TaskEvent):void [override] | SequenceTask
|  | onChildTaskFault(event:TaskEvent):void [override] | SequenceTask
|  | onChildTaskStart(event:TaskEvent):void This event handler is called whenever a child task is started. | TaskGroup
|  | performTask():void [override] | SequenceTask
|  | processChild(child:ITask):Boolean Processes the specified child by starting it if it is enabled or skipping it if it is disabled. | TaskGroup

Events
Hide Inherited Events
Show Inherited Events

| Event | Summary | Defined By
--- | --- | --- | ---
|  | childComplete |  | TaskGroup
|  | childFault |  | TaskGroup
|  | childStart |  | TaskGroup
|  | currentStateChange |  | Task
|  | taskComplete |  | Task
|  | taskFault |  | Task
|  | taskProgress |  | TaskGroup
|  | taskStart |  | Task

Constructor Detail

SequenceTask | () | Constructor

`public function SequenceTask()`

Method Detail

onChildTaskComplete | () | method

`override protected function onChildTaskComplete(event:TaskEvent):void`

Parameters

| `event:TaskEvent`

onChildTaskFault | () | method |

`override protected function onChildTaskFault(event:TaskEvent):void`

Parameters

| `event:TaskEvent`

performTask | () | method |

`override protected function performTask():void`

Thu Jan 16 2014, 01:11 PM +08:00