com.triomotor.views

CustomerInformation

extends: AbstractView
implements: OrderReceivedListener

This class is in charge of showing the custumer information received from the server in the texfieds

Property Summary

private TextInputlicenseInput
private TextInputorderInput
private TextInputfirstNameInput
private TextInputlastNameInput
private TextInputmodelInput
private TextInputstatusInput

Constructor Summary

CustomerInformation()

Method Summary

public onOrderReceived(item:Object)
private init()

Property Details

licenseInput

private licenseInput:TextInput

A TextInput instance that has been initialized on the stage with instance name licenseInput

orderInput

private orderInput:TextInput

A TextInput instance that has been initialized on the stage with instance name orderInput

firstNameInput

private firstNameInput:TextInput

A TextInput instance that has been initialized on the stage with instance name firstNameInput

lastNameInput

private lastNameInput:TextInput

A TextInput instance that has been initialized on the stage with instance name lastNameInput

modelInput

private modelInput:TextInput

A TextInput instance that has been initialized on the stage with instance name modelInput

statusInput

private statusInput:TextInput

A TextInput instance that has been initialized on the stage with instance name statusInput

Constructor Details

CustomerInformation

CustomerInformation()

Method Details

onOrderReceived

public onOrderReceived(item:Object):Void

Description: Populates the textFields with the data received
Assumptions: - the textFields are instantiated
- LICENSE, FIRST_NAME, LAST_NAME, MODEL_NAME, STATUS_NAME WORK_ORDER_ID are properties available in the object received from the server
Globals: uses the following globals:
licenseInput, firstNameInput, lastNameInput, modelInput, statusInput, orderInput
Calls: none
Is Called by: This function is called by broadcastOrderReceived() in the application(TrioMotor class)

Parameters
item (Object) -
Returns
Void
See Also
OrderReceivedListener.onOrderReceived

init

private init():Void

Description: Registers this object as listener of OrderReceived event in the application
Assumptions: application is already instantiated
Globals: uses application
Calls: addOrderReceivedListener() in the application
Is Called by: setApplication() in its super class AbstractView

Returns
Void