com.triomotor.views

TabView

extends: AbstractView

This class is the View for the Tab window that has three child components: the Parts, The Information, and The Scheduling. This class is in charge of showing or hiding the tabs according their state. The TabBar is the way in which the user changes the state of each tab.

See Also
Parts, Information, Scheduling

Property Summary

private AbstractViewinformation
private AbstractViewparts
private AbstractViewscheduling
private AbstractViewselectedTab
private tabs

Constructor Summary

TabView()

Method Summary

public change(eventObj:Object)
private onLoad()

Property Details

information

private information:AbstractView

An instance of Information that has been initialized on the stage with instance name information.

See Also
Information

parts

private parts:AbstractView

An instance of Parts that has been initialized on the stage with instance name parts.

See Also
Parts

scheduling

private scheduling:AbstractView

An instance of Scheduling that has been initialized on the stage with instance name Scheduling.

See Also
Scheduling

selectedTab

private selectedTab:AbstractView

A reference of the current selected tab (information, scheduling or parts)

tabs

private tabs

A TabBar instance that has been initialized on the stage with instance name tabs.

Constructor Details

TabView

TabView()

Method Details

change

public change(eventObj:Object):Void

Description This switch hides the old selected tab and shows the new selected tab and keeps a reference of the current tab in selectedTab
Assumptions: information, scheduling, and parts are instantiated on the stage
Globals: uses the following globals
information, scheduling, parts and selectedTab
Calls: none Is Called by: This function is called by the TabBar when the user switches tabs

Parameters
eventObj (Object) -
Returns
Void

onLoad

private onLoad():Void

Description: Sets all the tabs as invisible, sets the application in information, scheduling and parts. Registers itself as a Listener to the Change event in the tabs component
Assumptions: information, scheduling, parts and tabs are instantiated on the stage
Globals: uses the following globals
information, scheduling, parts and tabs
Calls: setApplication() in the following views:
information, scheduling and parts
addEventListener() in tabs Is Called by: This function is called automatically by the player when this object is completely loaded. This is possible because this class extends from the MovieClip Class

Returns
Void