Packageorg.springextensions.actionscript.core.task.support
SVN browsingAbstractTaskBlock.as
FisheyeAbstractTaskBlock.as
Classpublic class AbstractTaskBlock
InheritanceAbstractTaskBlock Inheritance Task Inheritance AbstractOperation Inheritance flash.events.EventDispatcher
ImplementsITaskBlock
SubclassesForBlock, WhileBlock

Base class for ITaskBlock implementations. Abstract base class for IOperation implementations.



Public Properties
 PropertyDefined by
 Inheritedcontext : Object
An anonymous object that can be used to store values that can be accessed by other client code to pass around these values between commands.
Task
 Inheritederror : *
The error of this operation or null if no error occurred during this operation.
AbstractOperation
 InheritedfailOnFault : Boolean = true
Determines if the entire controlflow of the current ITask will be aborted if an error occurs.
Task
  isClosed : Boolean
[read-only]
AbstractTaskBlock
 InheritedisDisposed : Boolean
Returns true if the dispose() has already been invoked before.
Task
 Inheritedparent : ITask
Task
 Inheritedresult : *
The result of this operation or null if the operation does not have a result.
AbstractOperation
 Inheritedtimeout : int
The timeout in milliseconds.
AbstractOperation
Protected Properties
 PropertyDefined by
 InheritedcommandList : Array
Internal Array of the commands, tasks and controlflow objects that will be executed.
Task
 InheritedcurrentCommand : ICommand
The current ICommand instance that is being executed.
Task
 InheritedfinishedCommandList : Array
Internal Array of the commands, tasks and controlflow objects that have been executed.
Task
Public Methods
 MethodDefined by
  
AbstractTaskBlock
 Inherited
addCompleteListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.COMPLETE event.
AbstractOperation
 Inherited
addErrorListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.ERROR event.
AbstractOperation
 Inherited
addTimeoutListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.TIMEOUT event.
AbstractOperation
 Inherited
and(item:Object, ... constructorArgs):ITask
Adds an ICommand that will be executed in parallel.
Task
 Inherited
Task
 Inherited
Task
 Inherited
dispatchCompleteEvent(result:* = null):Boolean
Convenience method for dispatching a OperationEvent.COMPLETE event.
AbstractOperation
 Inherited
dispatchErrorEvent(error:* = null):Boolean
Convenience method for dispatching a OperationEvent.ERROR event.
AbstractOperation
 Inherited
Convenience method for dispatching a OperationEvent.TIMEOUT event.
AbstractOperation
 Inherited
dispose():void
Release any resources that the current object might hold a reference to.
Task
 Inherited
Switches the current IIfElseBlock control flow to its else block.
Task
  
AbstractTaskBlock
 Inherited
execute():*
Executes the command.
Task
 Inherited
Stops the execution chain completely.
Task
 Inherited
for_(count:uint, countProvider:ICountProvider = null, forBlock:IForBlock = null):IForBlock
Adds a repeating execution block which will be executed a specified number of times, determined by the specified count or ICountProvider parameters.
Task
 Inherited
if_(conditionProvider:IConditionProvider = null, ifElseBlock:IIfElseBlock = null):IIfElseBlock
Adds a conditional execution block to the current ITask which will only be executed if the specified IConditionProvider return true.
Task
 Inherited
next(item:Object, ... constructorArgs):ITask
Adds an ICommand that will be executed in sequence.
Task
 Inherited
pause(duration:uint, pauseCommand:ICommand = null):ITask
Pauses the current ITask for the specified amount of milliseconds.
Task
 Inherited
removeCompleteListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.COMPLETE event.
AbstractOperation
 Inherited
removeErrorListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.ERROR event.
AbstractOperation
 Inherited
removeTimeoutListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.TIMEOUT event.
AbstractOperation
 Inherited
reset(doHardReset:Boolean = false):ITask
Restarts the execution of the current ITask.
Task
 Inherited
while_(conditionProvider:IConditionProvider = null, whileBlock:IWhileBlock = null):IWhileBlock
Adds a repeating execution block which will be executed until the specified IConditionProvider returns false.
Task
Protected Methods
 MethodDefined by
 Inherited
Examines the current ICommand in the controlflow and based on that either adds the specified ICommand to the current ICommand or creates a new TaskCommand and adds it to this.
Task
 Inherited
addCommandListeners(asyncCommand:IOperation):void
Task
 Inherited
Adds a new TaskCommand with the specified ComposeiteCommandKind to the controlflow of the current ITask.
Task
 Inherited
addToCommandList(command:ICommand):void
Adds the specified ICommand instance to the control flow of the current ITask, if the specified ICommand is also an implementation of ITask, the current ITask will be set as its parent.
Task
 Inherited
Task
 Inherited
dispatchTaskEvent(eventType:String, command:ICommand = null):void
Task
  
doFlowControlCheck(flowControl:ITaskFlowControl):Boolean
AbstractTaskBlock
  
executeCommand(command:ICommand):void
AbstractTaskBlock
  
AbstractTaskBlock
 Inherited
Task
 Inherited
Task
  
AbstractTaskBlock
 Inherited
initTask():void
Task
 Inherited
Task
 Inherited
Task
 Inherited
Task
 Inherited
Task
 Inherited
Task
 Inherited
Task
  
AbstractTaskBlock
 Inherited
startTimeout():void
AbstractOperation
  
AbstractTaskBlock
Events
 EventSummaryDefined by
 Inherited Dispatched when the current AbstractOperation has completed its functionality successfully.AbstractOperation
 Inherited Dispatched when the current AbstractOperation encountered an error.AbstractOperation
 Inherited Dispatched when the current AbstractOperation timed out.AbstractOperation
Property detail
isClosedproperty
isClosed:Boolean  [read-only]Implementation
    public function get isClosed():Boolean
Constructor detail
AbstractTaskBlock()constructor
public function AbstractTaskBlock()
Method detail
doFlowControlCheck()method
protected function doFlowControlCheck(flowControl:ITaskFlowControl):BooleanParameters
flowControl:ITaskFlowControl

Returns
Boolean
end()method 
public override function end():ITask

Returns
ITask
executeCommand()method 
protected override function executeCommand(command:ICommand):voidParameters
command:ICommand
executeFlowControl()method 
protected function executeFlowControl(kind:TaskFlowControlKind):BooleanParameters
kind:TaskFlowControlKind

Returns
Boolean
exitExecution()method 
protected function exitExecution():void
restartExecution()method 
protected function restartExecution():void
TaskFlowControlEvent_handler()method 
protected override function TaskFlowControlEvent_handler(event:TaskFlowControlEvent):voidParameters
event:TaskFlowControlEvent