Class WFYAHOO_widget_TabView

Description

A YAHOO TabView widget for our framework. This widget allows you to easily create tabbed content.

To use tabview, simply create a WFYAHOO_widget_TabView with WFYAHOO_widget_Tab for children. PHOCOA takes care of the rest.

WFYAHOO_widget_TabView is a block element. Use WFViewBlock to use a tabview in your template. All WFYAHOO_widget_Tab instancs should be inside the block, in the order you with them to appear.

Example:

  1.  {WFViewBlock id="myTabs"}
  2.      {WFViewBlock id="tab1"}Tab content goes here{/WFViewBlock}
  3.      {WFViewBlock id="tab2"}Tab content goes here{/WFViewBlock}
  4.  {/WFViewBlock}

PHOCOA Builder Setup:

Required:

Optional:
selectedTabId - The ID of the tab that should be selected by default. orientation - One of top, left, right, or bottom.

Located in /framework/widgets/yahoo/WFYAHOO_widget_TabView.php (line 182)

WFObject
   |
   --WFView
      |
      --WFWidget
         |
         --WFYAHOO
            |
            --WFYAHOO_widget_TabView
Variable Summary
Method Summary
static void exposedProperties ()
WFYAHOO_widget_TabView __construct ( $id,  $page)
void addChild ( $newChild)
void initJS ( $blockContent)
void render ([ $blockContent = NULL])
void setSelectedTabId ( $tabId)
void tabDidRender ( $tab)
Variables
Methods
static method exposedProperties (line 220)
  • access: public
static void exposedProperties ()

Redefinition of:
WFWidget::exposedProperties()
Constructor __construct (line 193)

Constructor.

WFYAHOO_widget_TabView __construct ( $id,  $page)
  • $id
  • $page

Redefinition of:
WFYAHOO::__construct()
Constructor.
addChild (line 232)
void addChild ( $newChild)
  • $newChild

Redefinition of:
WFView::addChild()
Add a child view to this view.
allConfigFinishedLoading (line 200)
void allConfigFinishedLoading ()

Redefinition of:
WFView::allConfigFinishedLoading()
After WFPage has completed the loading of all config for all widgets, it will call this function on each widget.
canPushValueBinding (line 367)
void canPushValueBinding ()

Redefinition of:
WFYAHOO::canPushValueBinding()
initJS (line 264)
void initJS ( $blockContent)
  • $blockContent

Redefinition of:
WFYAHOO::initJS()
The initJS function is where YUI widgets perform their bootstrap/initialization.
render (line 242)
void render ([ $blockContent = NULL])
  • $blockContent

Redefinition of:
WFYAHOO::render()
IMPORTANT: The subclasses should get the base class's html, then add the needed code.
setSelectedTabId (line 227)
void setSelectedTabId ( $tabId)
  • $tabId
setupExposedBindings (line 214)
void setupExposedBindings ()

Redefinition of:
WFWidget::setupExposedBindings()
Set up all exposed bindings for this widget.
tabDidRender (line 208)
void tabDidRender ( $tab)
  • $tab

Inherited Methods

Inherited From WFYAHOO

WFYAHOO::__construct()
WFYAHOO::canPushValueBinding()
WFYAHOO::initJS()
WFYAHOO::jsForSimplePropertyConfig()
WFYAHOO::jsValueForValue()
WFYAHOO::render()
WFYAHOO::yuiloader()

Inherited From WFWidget

WFWidget::__construct()
WFWidget::addError()
WFWidget::bind()
WFWidget::bindingByName()
WFWidget::bindings()
WFWidget::canPushValueBinding()
WFWidget::errors()
WFWidget::exposedBindings()
WFWidget::exposedProperties()
WFWidget::formattedValue()
WFWidget::formatter()
WFWidget::hasRestoredState()
WFWidget::hidden()
WFWidget::name()
WFWidget::processBindingOptions()
WFWidget::propagateValueToBinding()
WFWidget::pullBindings()
WFWidget::pushBindings()
WFWidget::restoreState()
WFWidget::setFormatter()
WFWidget::setHidden()
WFWidget::setName()
WFWidget::setupExposedBindings()
WFWidget::setValue()
WFWidget::setWidgetLabel()
WFWidget::unbind()
WFWidget::value()
WFWidget::valueForBinding()
WFWidget::widgetLabel()

Inherited From WFView

WFView::__construct()
WFView::addChild()
WFView::allConfigFinishedLoading()
WFView::children()
WFView::cloneWithID()
WFView::enabled()
WFView::exposedProperties()
WFView::getForm()
WFView::getJSActions()
WFView::getListenerJS()
WFView::getListenerJSInScriptTag()
WFView::getOnEvent()
WFView::getWidgetDir()
WFView::getWidgetWWWDir()
WFView::id()
WFView::importCSS()
WFView::importJS()
WFView::jsEndHTML()
WFView::jsStartHTML()
WFView::page()
WFView::parent()
WFView::removeChild()
WFView::render()
WFView::setEnabled()
WFView::setId()
WFView::setJSonBlur()
WFView::setJSonClick()
WFView::setListener()
WFView::setOnEvent()
WFView::setParent()
WFView::yuiPath()

Inherited From WFObject

WFObject::__construct()
WFObject::exposedProperties()
WFObject::getClass()
WFObject::keyPathToTargetAndKey()
WFObject::setValueForKey()
WFObject::setValueForKeyPath()
WFObject::validateValueForKey()
WFObject::validateValueForKeyPath()
WFObject::valueForKey()
WFObject::valueForKeyPath()
WFObject::valueForUndefinedKey()
WFObject::__toString()

Documentation generated on Wed, 12 Nov 2008 23:46:28 -0500 by phpDocumentor 1.4.1