Packageorg.springextensions.actionscript.core.task.support
SVN browsingForBlock.as
FisheyeForBlock.as
Classpublic class ForBlock
InheritanceForBlock Inheritance AbstractTaskBlock Inheritance Task Inheritance AbstractOperation Inheritance flash.events.EventDispatcher
ImplementsIForBlock

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
  countProvider : ICountProvider
ForBlock
 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
 InheritedisClosed : Boolean
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
  
ForBlock(countProvider:ICountProvider)
Creates a new ForBlock instance.
ForBlock
 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
 Inherited
AbstractTaskBlock
  
execute():*
ForBlock
 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
  
addCountListeners(asyncCommand:IOperation):void
ForBlock
 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
 Inherited
doFlowControlCheck(flowControl:ITaskFlowControl):Boolean
AbstractTaskBlock
  
executeBlock():void
ForBlock
  
executeCommand(command:ICommand):void
ForBlock
 Inherited
AbstractTaskBlock
 Inherited
Task
 Inherited
Task
 Inherited
AbstractTaskBlock
 Inherited
initTask():void
Task
 Inherited
Task
 Inherited
Task
  
ForBlock
  
ForBlock
 Inherited
Task
 Inherited
Task
 Inherited
Task
  
removeCountListeners(asyncCommand:IOperation):void
ForBlock
 Inherited
Task
  
ForBlock
  
ForBlock
 Inherited
startTimeout():void
AbstractOperation
  
ForBlock
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
countProviderproperty
countProvider:ICountProvider  [read-write]Implementation
    public function get countProvider():ICountProvider
    public function set countProvider(value:ICountProvider):void
Constructor detail
ForBlock()constructor
public function ForBlock(countProvider:ICountProvider)

Creates a new ForBlock instance.

Parameters
countProvider:ICountProvider — an ICountProvider that will determine whether the current ForBlock's logic will be executed or not.
Method detail
addCountListeners()method
protected function addCountListeners(asyncCommand:IOperation):voidParameters
asyncCommand:IOperation
execute()method 
public override function execute():*

Returns
*
executeBlock()method 
protected function executeBlock():void
executeCommand()method 
protected override function executeCommand(command:ICommand):voidParameters
command:ICommand
onCountFault()method 
protected function onCountFault(event:OperationEvent):voidParameters
event:OperationEvent
onCountResult()method 
protected function onCountResult(event:OperationEvent):voidParameters
event:OperationEvent
removeCountListeners()method 
protected function removeCountListeners(asyncCommand:IOperation):voidParameters
asyncCommand:IOperation
restartExecution()method 
protected override function restartExecution():void
startExecution()method 
protected function startExecution():void
TaskFlowControlEvent_handler()method 
protected override function TaskFlowControlEvent_handler(event:TaskFlowControlEvent):voidParameters
event:TaskFlowControlEvent