BiEventListenerActionThread
This is a class that represents an action thread for simple BiEventListeners.@remark A BiActionThread can be described as an action instance. It represents exactly one execution and is used to keep track of asynchronous executions.
This class extends BiEventTarget and therefore all methods and fields available for BiEventTarget are also available for BiEventListenerActionThread .
Constructor
new BiEventListenerActionThread ( oAction )
Parameters
| Name | Type | Optional | Default | Descripton |
oAction | | The action called. |
Properties
Methods
| Name | Description |
exec | Trigger this thread. |
prepare | Prepare thread and it's dependencies. This method must be called before a thread can be executed. |
Events
| Name | Type | Bubbles | Descripton |
completed | | This event is dispatched when the thread is completed. | |
exec | | This event is dispatched when the thread is executed. |
Static Methods
None.
Static Fields
None.
Remarks
None.
Method Details
exec
Trigger this thread.
Syntax
object.exec ( oCaller [ ,oEvent ] ) Parameters
| Name | Type | Optional | Default | Descripton |
oCaller | Object | The instance that called this action thread. | ||
oEvent | | ![]() | The (optional) event that triggered this action thread. |
Return Type
Object
prepare
Prepare thread and it's dependencies. This method must be called before a thread can be executed.
Syntax
object.prepare ( oScope [ ,nType ] ) Parameters
| Name | Type | Optional | Default | Descripton |
oScope | Object | The scope this thread will be executed in. | ||
nType | Number | ![]() | The (optional) type of this thread. |
Return Type
void
