MoreMotion Face API

Class TabControl

Object
   |
   +--TabControl

class TabControl


Represents a Tab Control. A Tab Control contains the same amount of TabButton and TabPanel objects with identical names. For Example: If a TabControl contains two tabs then there must be two TabPanels with names i.e. "Tab1" and "Tab2" in a TabPanelContainer and two TabButtons with names i.e. "Tab1" and "Tab2" in a TabButtonContainer.

Below is an example HTML code that contains necessary definitions for a TabControl. It is not important what type of HTML elements are used as containers. i.e."TABLE" elements could also be used instead of "DIV" elements. The only requirement is to use the "mo:*" attributes correctly.


 <div mo:type="TabControl" mo:name="TabControl1" mo:needsInit="true" mo:props="initialTab:'Tab1'">
   <div mo:type="TabButtonContainer">
     <img mo:name="Tab1" src="n.gif" mo:type="TabButtonAnimated" mo:needInit="true"
          mo:props="normalSource:'n.gif', mouseOverSource:'mo.gif', mouseDownSource:'md.gif', selectedSource:'sel.gif'"/>
     <img mo:name="Tab2" src="n.gif" mo:type="TabButtonAnimated" mo:needInit="true"
          mo:props="normalSource:'n.gif', mouseOverSource:'mo.gif', mouseDownSource:'md.gif', selectedSource:'sel.gif'"/>
   </div>
   <div mo:type="TabPanelContainer">
     <div mo:type="TabPanel" mo:name="Tab1">Tab Area 1</div>
     <div mo:type="TabPanel" mo:name="Tab2">Tab Area 2</div>
   </div>
 </div>
 

Defined in Tabs.js


Field Summary
 Object props
          TabControl Properties Object.
 
Constructor Summary
TabControl(node)
           
 
Method Summary
 TabControl getParentTabControl()
           Returns the TabControl object that encloses this TabControl
 Object getSelectedTabName()
           Returns the name of the tab that is in "selected" status.
 TabButton getTabButton(name)
           Returns the TabButton object associated with the specified name
 TabPanel[] getTabButtons()
           Returns an array of contained TabButtons
 TabPanel getTabPanel(name)
           Returns the TabPanel object associated with the specified name
 TabPanel[] getTabPanels()
           Returns an array of contained TabPanels
 void init()
           Initializes this TabControl.
 Object switchTo(tabName, recursive)
           Makes the specified TabPanel visible and others invisible.

Field Detail

props

Object props

Constructor Detail

TabControl

TabControl(node)

Method Detail

getParentTabControl

TabControl getParentTabControl()

getSelectedTabName

Object getSelectedTabName()

getTabButton

TabButton getTabButton(name)

getTabButtons

TabPanel[] getTabButtons()

getTabPanel

TabPanel getTabPanel(name)

getTabPanels

TabPanel[] getTabPanels()

init

void init()

switchTo

Object switchTo(tabName, recursive)

MoreMotion Face API

Copyright 2002 - 2011, MOR YAZILIM
Documentation generated by JSDoc on Thu Mar 3 18:19:14 2011