| Package | org.springextensions.actionscript.core.task.support |
| SVN browsing | AbstractTaskBlock.as |
| Fisheye | AbstractTaskBlock.as |
| Class | public class AbstractTaskBlock |
| Inheritance | AbstractTaskBlock Task AbstractOperation flash.events.EventDispatcher |
| Implements | ITaskBlock |
| Subclasses | ForBlock, WhileBlock |
ITaskBlock implementations.
Abstract base class for IOperation implementations.
| Property | Defined by | ||
|---|---|---|---|
![]() | 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.
| Task | |
![]() | error : *
The error of this operation or
null if no error occurred during this operation. | AbstractOperation | |
![]() | failOnFault : Boolean = true
Determines if the entire controlflow of the current
ITask will be aborted if an error occurs. | Task | |
| isClosed : Boolean [read-only]
| AbstractTaskBlock | ||
![]() | isDisposed : Boolean
Returns
true if the dispose() has already been invoked before. | Task | |
![]() | parent : ITask
| Task | |
![]() | result : *
The result of this operation or
null if the operation does not have a result. | AbstractOperation | |
![]() | timeout : int
The timeout in milliseconds.
| AbstractOperation | |
| Method | Defined by | ||
|---|---|---|---|
| AbstractTaskBlock | |||
![]() |
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 | |
![]() |
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 | |
![]() |
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 | |
![]() |
Adds an
ICommand that will be executed in parallel. | Task | |
![]() |
| Task | |
![]() |
| Task | |
![]() |
dispatchCompleteEvent(result:* = null):Boolean
Convenience method for dispatching a
OperationEvent.COMPLETE event. | AbstractOperation | |
![]() |
dispatchErrorEvent(error:* = null):Boolean
Convenience method for dispatching a
OperationEvent.ERROR event. | AbstractOperation | |
![]() |
dispatchTimeoutEvent():Boolean
Convenience method for dispatching a
OperationEvent.TIMEOUT event. | AbstractOperation | |
![]() |
dispose():void
Release any resources that the current object might hold a reference to.
| Task | |
![]() |
Switches the current
IIfElseBlock control flow to its else block. | Task | |
| AbstractTaskBlock | |||
![]() |
execute():*
Executes the command.
| Task | |
![]() |
Stops the execution chain completely.
| Task | |
![]() |
Adds a repeating execution block which will be executed a specified number of times, determined by the specified
count or ICountProvider parameters. | Task | |
![]() |
Adds a conditional execution block to the current
ITask which will only
be executed if the specified IConditionProvider return true. | Task | |
![]() |
Adds an
ICommand that will be executed in sequence. | Task | |
![]() |
Pauses the current
ITask for the specified amount of milliseconds. | Task | |
![]() |
removeCompleteListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.COMPLETE event.
| AbstractOperation | |
![]() |
removeErrorListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.ERROR event.
| AbstractOperation | |
![]() |
removeTimeoutListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.TIMEOUT event.
| AbstractOperation | |
![]() |
Restarts the execution of the current
ITask. | Task | |
![]() |
Adds a repeating execution block which will be executed until the specified
IConditionProvider returns false. | Task | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
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 | |
![]() |
addCommandListeners(asyncCommand:IOperation):void
| Task | |
![]() |
Adds a new
TaskCommand with the specified ComposeiteCommandKind to the controlflow of the current ITask. | Task | |
![]() |
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 | |
![]() |
completeExecution():void
| Task | |
![]() |
dispatchTaskEvent(eventType:String, command:ICommand = null):void
| Task | |
|
doFlowControlCheck(flowControl:ITaskFlowControl):Boolean
| AbstractTaskBlock | ||
|
executeCommand(command:ICommand):void
| AbstractTaskBlock | ||
|
executeFlowControl(kind:TaskFlowControlKind):Boolean
| AbstractTaskBlock | ||
![]() |
executeNextCommand():void
| Task | |
![]() |
exit_handler(event:TaskFlowControlEvent):void
| Task | |
|
exitExecution():void
| AbstractTaskBlock | ||
![]() |
initTask():void
| Task | |
![]() |
onCommandFault(event:OperationEvent):void
| Task | |
![]() |
onCommandResult(event:OperationEvent):void
| Task | |
![]() |
redispatchCompositeCommand(event:CompositeCommandEvent):void
| Task | |
![]() |
redispatchTaskEvent(event:TaskEvent):void
| Task | |
![]() |
removeCommandListeners(asyncCommand:IOperation):void
| Task | |
![]() |
resetCommandList():void
| Task | |
|
restartExecution():void
| AbstractTaskBlock | ||
![]() |
startTimeout():void
| AbstractOperation | |
|
TaskFlowControlEvent_handler(event:TaskFlowControlEvent):void
| AbstractTaskBlock | ||
| isClosed | property |
isClosed:Boolean [read-only]Implementation
public function get isClosed():Boolean
| AbstractTaskBlock | () | constructor |
public function AbstractTaskBlock()
| doFlowControlCheck | () | method |
protected function doFlowControlCheck(flowControl:ITaskFlowControl):BooleanParameters
flowControl:ITaskFlowControl |
Boolean |
| end | () | method |
| executeCommand | () | method |
| executeFlowControl | () | method |
protected function executeFlowControl(kind:TaskFlowControlKind):BooleanParameters
kind:TaskFlowControlKind |
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 |