Packageat.datacollection.workers
Classpublic class DataWorkerForm
InheritanceDataWorkerForm Inheritance DataWorkerGeneric



Public Properties
 PropertyDefined by
  debugMode : Boolean = false
[static]
DataWorkerForm
  expectedItemType : String
[read-only]
DataWorkerForm
  type : String
[read-only]
DataWorkerForm
Protected Properties
 PropertyDefined by
 Inherited_itemList : Array
An internal list of Data items for this worker class.
DataWorkerGeneric
Public Methods
 MethodDefined by
  
Constructor.
DataWorkerForm
 Inherited
This is the IDataItemWorker implementation of adding a Data item to this classes internal list.
DataWorkerGeneric
  
flush():void
DataWorkerForm
Protected Methods
 MethodDefined by
 Inherited
attachListeners(index:int):void
Attaches listeners that begin and end data events.
DataWorkerGeneric
 Inherited
Function goes through the hierarchy of the object passed and return the first instance of a presentation module in the chain.
DataWorkerGeneric
 Inherited
findTarget(pTarget:*):int
Finds a matching target in the _itemList and returns its position in the array.
DataWorkerGeneric
  
onEndEvent(e:Event = null):void
This function handles the operations for data collection when the DATA_FORM_END event is dispatched from the target passed via the DataItemForm.
DataWorkerForm
  
onStartEvent(e:Event):void
This function handles the operations for data collection when the DATA_FORM_START event is dispatched from the target passed via the DataItemForm.
DataWorkerForm
 Inherited
parseOptions(index:int):void
This method iterates over the DataWorker Options that were specified in the in the Data Item Description and modifies the data before it is pushed into the database.
DataWorkerGeneric
 Inherited
pushToDatabase(index:int):void
This method pushes the BookStart, BookEnd and related slot data to the DataCollectionInterface to be inserted into the DataCollection database.
DataWorkerGeneric
 Inherited
removeListeners(index:int):void
Removes the listeners that were attached from the attachListeners(index:int) method.
DataWorkerGeneric
Public Constants
 ConstantDefined by
  DATA_EXPECTED_TYPE : String = "form"
[static]
DataWorkerForm
  DATA_FORM_END : String = "formEnd"
[static] This is the event type that will end data collection and commit the data to the database for a DataItemForm.
DataWorkerForm
  DATA_FORM_START : String = "formStart"
[static] This is the event type that will begin the data collection for a DataItemForm item.
DataWorkerForm
  DATA_TYPE : String = "dataCollectionForm"
[static]
DataWorkerForm
Property detail
debugModeproperty
public static var debugMode:Boolean = false
expectedItemTypeproperty 
expectedItemType:String  [read-only]

Implementation
    public function get expectedItemType():String

See also

typeproperty 
type:String  [read-only]

Implementation
    public function get type():String

See also

Constructor detail
DataWorkerForm()constructor
public function DataWorkerForm()

Constructor.

Method detail
flush()method
public override function flush():void

See also

onEndEvent()method 
protected override function onEndEvent(e:Event = null):void

This function handles the operations for data collection when the DATA_FORM_END event is dispatched from the target passed via the DataItemForm. This also prepares the data collectionbe inserted into the database.

Parameters
e:Event (default = null) — The target of this event should be the target that was passed in via the DataItemForm.
onStartEvent()method 
protected override function onStartEvent(e:Event):void

This function handles the operations for data collection when the DATA_FORM_START event is dispatched from the target passed via the DataItemForm.

Parameters
e:Event — The target of this event should be the target that was passed in via the DataItemForm.
Constant detail
DATA_EXPECTED_TYPEconstant
public static const DATA_EXPECTED_TYPE:String = "form"

See also

DATA_FORM_ENDconstant 
public static const DATA_FORM_END:String = "formEnd"

This is the event type that will end data collection and commit the data to the database for a DataItemForm. This event should not be called without dispatching a DATA_FORM_START event from the target supplied in the DataItemForm.

See also

at.datacollection.data.DataItemForm
DATA_FORM_STARTconstant 
public static const DATA_FORM_START:String = "formStart"

This is the event type that will begin the data collection for a DataItemForm item. This event needs to be followed up by the at.datacollection.workers.DataWorkerForm.DATA_FORM_END event to close the bookend and push the data to the database.

See also

DATA_TYPEconstant 
public static const DATA_TYPE:String = "dataCollectionForm"

See also