thyTabsManager

Tabs Manager Class.

This class implements the TabsManager Element.  This element handles tabs contents.

CSS Classes

  • .thyTabsManager_contents
  • .thyTabsManager_tabsPanel
  • .thyTabsManager_control - All tab controls
  • .thyTabsManager_control_active
  • .thyTabsManager_control_inactive
  • .<object name>_contents
  • .<object name>_tabsPanel
  • .<object name>_control
  • .<object name>_control_active
  • .<object name>_control_inactive

Events

onchangetabInvoked when Active tab is changed

Author

Raphael Derosso Pereira raphael.nosp@m.pereira@users.sour.nosp@m.ceforge.net

Summary
Tabs Manager Class.
Initialization Method
Used to set Caption
Returns the contents of each tab
Overloaded method that calls just the tabs contents setDisabled method
Overloaded method that resets just TabsContents
Overwritten method that sets the name of main, contents and tabs panel and refreshes CSS Classes
Overwritten thyPanel::setCSSClass method that sets the class of main, tabs panel and contents
Sets the caption of a tab.
Adds a Panel as a tab contents.
Removes the specified tab from Tabs Manager
Changes the specified Tab to active state
Overwritten method that turns addChild into an alias of addTab
Overwritten method that turns removeChild into an alias of removeTab
Overwritten method that adds the class to main, contents and tabs panel
Overwritten Method that removes the specified CSS Class from main, contents and tabs panel

initThyTabsManager

p.initThyTabsManager = function ()

Initialization Method

populate

p.populate = function (data)

Used to set Caption

sweepOut

p.sweepOut = function ()

Returns the contents of each tab

setDisabled

p.setDisabled = function (bool)

Overloaded method that calls just the tabs contents setDisabled method

reset

p.reset = function ()

Overloaded method that resets just TabsContents

setName

p.setName = function (name)

Overwritten method that sets the name of main, contents and tabs panel and refreshes CSS Classes

Parameter

nameThe new widget name

setCSSClass

p.setCSSClass = function (type)

Overwritten thyPanel::setCSSClass method that sets the class of main, tabs panel and contents

Parameter

typeThe class type

setCaption

p.setCaption = function (tab,
caption)

Sets the caption of a tab.

Parameters

tabThe tab name
captionThe caption to be set

addTab

p.addTab = function (tab,
caption)

Adds a Panel as a tab contents.

Parameters

captionThe text that will be shown on the tab switch
tabThe tab itself.  This must be a thyPanel

removeTab

p.removeTab = function(tab)

Removes the specified tab from Tabs Manager

Paramenter

tabThe thyPanel that was previously inserted as a tab

setActive

p.setActive = function (tab)

Changes the specified Tab to active state

Parameter

tabCan be the thyPanel or just the name of the tab that should be activated

addChild

p.addChild = function (caption,
tab)

Overwritten method that turns addChild into an alias of addTab

Parameters

captionThe text that will be shown on the tab switch
tabThe tab itself.  This must be a thyPanel

removeChild

p.removeChild = function(tab)

Overwritten method that turns removeChild into an alias of removeTab

Paramenter

tabThe thyPanel that was previously inserted as a tab

Private Methods

_addCSSClass

p._addCSSClass = function (cssClass)

Overwritten method that adds the class to main, contents and tabs panel

Parameter

cssClassThe class to be appended

_removeCSSClass

p._removeCSSClass = function (cssClass)

Overwritten Method that removes the specified CSS Class from main, contents and tabs panel

Parameter

cssClassThe CSS Class to be removed
p.initThyTabsManager = function ()
Initialization Method
p.populate = function (data)
Used to set Caption
p.sweepOut = function ()
Returns the contents of each tab
p.setDisabled = function (bool)
Overloaded method that calls just the tabs contents setDisabled method
p.reset = function ()
Overloaded method that resets just TabsContents
p.setName = function (name)
Overwritten method that sets the name of main, contents and tabs panel and refreshes CSS Classes
p.setCSSClass = function (type)
Overwritten thyPanel::setCSSClass method that sets the class of main, tabs panel and contents
p.setCSSClass = function(type)
Sets the CSS Class property of this widget based on its base classes, cssClasses attributes and extra classes
p.setCaption = function (tab,
caption)
Sets the caption of a tab.
p.addTab = function (tab,
caption)
Adds a Panel as a tab contents.
p.removeTab = function(tab)
Removes the specified tab from Tabs Manager
p.setActive = function (tab)
Changes the specified Tab to active state
p.addChild = function (caption,
tab)
Overwritten method that turns addChild into an alias of addTab
p.removeChild = function(tab)
Overwritten method that turns removeChild into an alias of removeTab
p._addCSSClass = function (cssClass)
Overwritten method that adds the class to main, contents and tabs panel
p._removeCSSClass = function (cssClass)
Overwritten Method that removes the specified CSS Class from main, contents and tabs panel
Base class for all other ThyAPI GUI Components