oscar.Control.Multi

Inherits from:oscar.Control

Description: This control is the base class for controls which contain a sub-menu with controls.

Summary
oscar.Control.Multi
Properties
controls{Array {Object}} Array containing the sub meny controls.
Functions
activateDescription: Called when the control is activated.
deactivateDescription: Called when the control is deactivated
initSubMenuDescription: This method creates the element used for the sub menu.
createSubMenuItemDescription: This method is used to create an element for a control to be added to tee sub menu.
addToSubMenuDescription: Adds the element to the submenu.
calcPositionDescription: This method calculates the position for the submenu in relation to its parent container.

Properties

controls

{Array {Object}} Array containing the sub meny controls.

Functions

activate

activate:function()

Description: Called when the control is activated.

deactivate

deactivate:function()

Description: Called when the control is deactivated

initSubMenu

initSubMenu:function()

Description: This method creates the element used for the sub menu.

createSubMenuItem

createSubMenuItem:function()

Description: This method is used to create an element for a control to be added to tee sub menu.

addToSubMenu

addToSubMenu:function(elem)

Description: Adds the element to the submenu.

calcPosition

calcPosition:function()

Description: This method calculates the position for the submenu in relation to its parent container.

activate:function()
Description: Called when the control is activated.
deactivate:function()
Description: Called when the control is deactivated
initSubMenu:function()
Description: This method creates the element used for the sub menu.
createSubMenuItem:function()
Description: This method is used to create an element for a control to be added to tee sub menu.
addToSubMenu:function(elem)
Description: Adds the element to the submenu.
calcPosition:function()
Description: This method calculates the position for the submenu in relation to its parent container.
Description: Definition for the oscar Control name space.