Packageorg.springextensions.actionscript.core.task.support
SVN browsingWhileBlock.as
FisheyeWhileBlock.as
Classpublic class WhileBlock
InheritanceWhileBlock Inheritance AbstractTaskBlock Inheritance Task Inheritance AbstractOperation Inheritance flash.events.EventDispatcher
ImplementsIWhileBlock

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



Public Properties
 PropertyDefined by
  conditionProvider : IConditionProvider
WhileBlock
 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
 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
  
WhileBlock(conditionProvider:IConditionProvider)
WhileBlock
 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():*
WhileBlock
 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
  
WhileBlock
 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
WhileBlock
 Inherited
executeCommand(command:ICommand):void
AbstractTaskBlock
 Inherited
AbstractTaskBlock
 Inherited
Task
 Inherited
Task
 Inherited
AbstractTaskBlock
 Inherited
initTask():void
Task
 Inherited
Task
 Inherited
Task
  
WhileBlock
  
WhileBlock
 Inherited
Task
 Inherited
Task
 Inherited
Task
  
WhileBlock
 Inherited
Task
 Inherited
AbstractTaskBlock
 Inherited
startTimeout():void
AbstractOperation
 Inherited
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
conditionProviderproperty
conditionProvider:IConditionProvider  [read-write]Implementation
    public function get conditionProvider():IConditionProvider
    public function set conditionProvider(value:IConditionProvider):void
Constructor detail
WhileBlock()constructor
public function WhileBlock(conditionProvider:IConditionProvider)Parameters
conditionProvider:IConditionProvider
Method detail
addConditionalListeners()method
protected function addConditionalListeners(asyncCommand:IOperation):voidParameters
asyncCommand:IOperation
execute()method 
public override function execute():*

Returns
*
executeBlock()method 
protected function executeBlock():void
onConditionalFault()method 
protected function onConditionalFault(event:OperationEvent):voidParameters
event:OperationEvent
onConditionalResult()method 
protected function onConditionalResult(event:OperationEvent):voidParameters
event:OperationEvent
removeConditionalListeners()method 
protected function removeConditionalListeners(asyncCommand:IOperation):voidParameters
asyncCommand:IOperation