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

NameTypeOptionalDefaultDescripton
oActionBiActionThe action called.

Properties

NameTypegetsetDescripton
actionObjectcheckedcheckedThe action that created this thread.
asyncBooleancheckedcheckedWhether to perform this action thread asynchronously
callerObjectcheckedThe instance that called this action thread.
completedBooleancheckedcheckedWhether execution of this action thread is completed.
scopeObjectcheckedcheckedThe scope to run the handler function in. I.e. what "this" refers to from inside the function.
threadPreparedBooleancheckedcheckedWhether dependencies of this action thread are prepared.

Methods

NameDescription
execTrigger this thread.
preparePrepare thread and it's dependencies. This method must be called before a thread can be executed.

Events

NameTypeBubblesDescripton
completedBiEventThis event is dispatched when the thread is completed.
execBiEventThis 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

NameTypeOptionalDefaultDescripton
oCallerObjectThe instance that called this action thread.
oEventBiEventcheckedThe (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

NameTypeOptionalDefaultDescripton
oScopeObjectThe scope this thread will be executed in.
nTypeNumbercheckedThe (optional) type of this thread.

Return Type

void