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.
| private | AbstractView | information | |
| private | AbstractView | parts | |
| private | AbstractView | scheduling | |
| private | AbstractView | selectedTab | |
| private | tabs |
TabView() |
| public | change(eventObj:Object) | ||
| private | onLoad() |
private information:AbstractView
An instance of Information that has been initialized on the stage with instance name information.
- See Also
- Information
private parts:AbstractView
An instance of Parts that has been initialized on the stage with instance name parts.
- See Also
- Parts
private scheduling:AbstractView
An instance of Scheduling that has been initialized on the stage with instance name Scheduling.
- See Also
- Scheduling
private selectedTab:AbstractView
A reference of the current selected tab (information, scheduling or parts)
private tabs
A TabBar instance that has been initialized on the stage with instance name tabs.
TabView()
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
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