BiActionThread

This class that represents an action thread used by BiAction.@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 BiAbstractActionThread and therefore all methods and fields available for BiAbstractActionThread are also available for BiActionThread .

Constructor

new BiActionThread ( oAction )

Parameters

NameTypeOptionalDefaultDescripton
oActionBiActionThe action called.

Properties

None.

Methods

NameDescription
processHandlerThis method is used by the exec method to process handler(s). The arguments passed to the handler are for handlers of type:
BiReference, get: nothing
BiReference, set: the value of the first argument to this action
BiReference, action:
Function:
String:
[0] the event that triggered the call
[1] an array of the values of all arguments to this action
[2] the thread currently being executed.
If the handler is passed as a String, arguments[0] is accessible as event, argument[1] as argv and argument[2] as thread.

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

processHandler

This method is used by the exec method to process handler(s). The arguments passed to the handler are for handlers of type:
BiReference, get: nothing
BiReference, set: the value of the first argument to this action
BiReference, action:
Function:
String:
[0] the event that triggered the call
[1] an array of the values of all arguments to this action
[2] the thread currently being executed.
If the handler is passed as a String, arguments[0] is accessible as event, argument[1] as argv and argument[2] as thread.

Syntax

object.processHandler ( )

Parameters

No arguments.

Return Type

void