Packageorg.springextensions.actionscript.core.task.support
SVN browsingIfElseBlock.as
FisheyeIfElseBlock.as
Classpublic class IfElseBlock
InheritanceIfElseBlock Inheritance AbstractOperation Inheritance flash.events.EventDispatcher
ImplementsIIfElseBlock

Abstract base class for IOperation implementations.



Public Properties
 PropertyDefined by
  conditionProvider : IConditionProvider
IfElseBlock
  context : 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.
IfElseBlock
 Inheritederror : *
The error of this operation or null if no error occurred during this operation.
AbstractOperation
  isClosed : Boolean
[read-only] If true no more ICommands can be added to the current ITaskBlock.
IfElseBlock
  parent : ITask
IfElseBlock
 Inheritedresult : *
The result of this operation or null if the operation does not have a result.
AbstractOperation
 Inheritedtimeout : int
The timeout in milliseconds.
AbstractOperation
Public Methods
 MethodDefined by
  
IfElseBlock(conditionProvider:IConditionProvider)
Creates a new IfElseBlock instance.
IfElseBlock
 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
  
and(item:Object, ... constructorArgs):ITask
IfElseBlock
  
IfElseBlock
  
IfElseBlock
 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
  
IfElseBlock
  
IfElseBlock
  
execute():*
IfElseBlock
  
IfElseBlock
  
for_(count:uint, countProvider:ICountProvider = null, forBlock:IForBlock = null):IForBlock
IfElseBlock
  
if_(condition:IConditionProvider = null, ifElseBlock:IIfElseBlock = null):IIfElseBlock
IfElseBlock
  
next(item:Object, ... constructorArgs):ITask
IfElseBlock
  
pause(duration:uint, pauseCommand:ICommand = null):ITask
IfElseBlock
 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
  
reset(doHardReset:Boolean = false):ITask
IfElseBlock
  
IfElseBlock
  
while_(condition:IConditionProvider = null, whileBlock:IWhileBlock = null):IWhileBlock
IfElseBlock
Protected Methods
 MethodDefined by
  
addBlockListeners(asyncCommand:IOperation):void
IfElseBlock
  
IfElseBlock
  
IfElseBlock
  
IfElseBlock
  
IfElseBlock
  
IfElseBlock
  
IfElseBlock
  
redispatch(event:Event):void
IfElseBlock
  
removeBlockListeners(asyncCommand:IOperation):void
IfElseBlock
  
IfElseBlock
 Inherited
startTimeout():void
AbstractOperation
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
contextproperty 
context:Object  [read-write]

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.

Implementation
    public function get context():Object
    public function set context(value:Object):void
isClosedproperty 
isClosed:Boolean  [read-only]

If true no more ICommands can be added to the current ITaskBlock.

Implementation
    public function get isClosed():Boolean
parentproperty 
parent:ITask  [read-write]Implementation
    public function get parent():ITask
    public function set parent(value:ITask):void
Constructor detail
IfElseBlock()constructor
public function IfElseBlock(conditionProvider:IConditionProvider)

Creates a new IfElseBlock instance.

Parameters
conditionProvider:IConditionProvider — An IConditionProvider instance that determines which block will be executed.
Method detail
addBlockListeners()method
protected function addBlockListeners(asyncCommand:IOperation):voidParameters
asyncCommand:IOperation
addConditionalListeners()method 
protected function addConditionalListeners(asyncCommand:IOperation):voidParameters
asyncCommand:IOperation
and()method 
public function and(item:Object, ... constructorArgs):ITaskParameters
item:Object
 
... constructorArgs

Returns
ITask
break_()method 
public function break_():ITask

Returns
ITask
continue_()method 
public function continue_():ITask

Returns
ITask
else_()method 
public function else_():IIfElseBlock

Returns
IIfElseBlock
end()method 
public function end():ITask

Returns
ITask
execute()method 
public function execute():*

Returns
*
executeBlocks()method 
protected function executeBlocks():void
exit()method 
public function exit():ITask

Returns
ITask
for_()method 
public function for_(count:uint, countProvider:ICountProvider = null, forBlock:IForBlock = null):IForBlockParameters
count:uint
 
countProvider:ICountProvider (default = null)
 
forBlock:IForBlock (default = null)

Returns
IForBlock
if_()method 
public function if_(condition:IConditionProvider = null, ifElseBlock:IIfElseBlock = null):IIfElseBlockParameters
condition:IConditionProvider (default = null)
 
ifElseBlock:IIfElseBlock (default = null)

Returns
IIfElseBlock
next()method 
public function next(item:Object, ... constructorArgs):ITaskParameters
item:Object
 
... constructorArgs

Returns
ITask
onBlockComplete()method 
protected function onBlockComplete(event:TaskEvent):voidParameters
event:TaskEvent
onCommandFault()method 
protected function onCommandFault(event:OperationEvent):voidParameters
event:OperationEvent
onConditionalFault()method 
protected function onConditionalFault(event:OperationEvent):voidParameters
event:OperationEvent
onConditionalResult()method 
protected function onConditionalResult(event:OperationEvent):voidParameters
event:OperationEvent
pause()method 
public function pause(duration:uint, pauseCommand:ICommand = null):ITaskParameters
duration:uint
 
pauseCommand:ICommand (default = null)

Returns
ITask
redispatch()method 
protected function redispatch(event:Event):voidParameters
event:Event
removeBlockListeners()method 
protected function removeBlockListeners(asyncCommand:IOperation):voidParameters
asyncCommand:IOperation
removeConditionalListeners()method 
protected function removeConditionalListeners(asyncCommand:IOperation):voidParameters
asyncCommand:IOperation
reset()method 
public function reset(doHardReset:Boolean = false):ITaskParameters
doHardReset:Boolean (default = false)

Returns
ITask
switchToElseBlock()method 
public function switchToElseBlock():void
while_()method 
public function while_(condition:IConditionProvider = null, whileBlock:IWhileBlock = null):IWhileBlockParameters
condition:IConditionProvider (default = null)
 
whileBlock:IWhileBlock (default = null)

Returns
IWhileBlock