Class WFYAHOO_widget_Tab

Description

A wrapper for the individual tab instances.

Content can be static or dynamically loaded.

WFYAHOO_widget_Tab is a block element. Use WFViewBlock to use a tab in your template. The block content is the default content for the tab.

HINT: If you have want to keep the current tab active when a form is submitted, add a hidden field to that form whose "name" is the ID of the WFYAHOO_widget_TabView and whose value is the ID of the WFYAHOO_widget_Tab that the form is on.

PHOCOA Builder Setup:

Required:

Optional:
cacheData dataSrc dataTimeout disabled label loadMethod preventAbandondedForm

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

WFObject
   |
   --WFView
      |
      --WFWidget
         |
         --WFYAHOO
            |
            --WFYAHOO_widget_Tab
Variable Summary
boolean $cacheData
string $dataSrc
integer $dataTimeout
boolean $disabled
string $label
string $loadMethod
Method Summary
static void exposedProperties ()
WFYAHOO_widget_Tab __construct ( $id,  $page)
void cacheData ()
void dataSrc ()
void dataTimeout ()
void disabled ()
void initJS ( $blockContent)
void label ()
void loadMethod ()
void render ([ $blockContent = NULL])
Variables
boolean $cacheData (line 40)
  • var: Whether or not to cache the data (if using dataSrc)
  • access: protected
string $dataSrc (line 44)
  • var: The absolute URL of a page on this server to load for dynamic content. If you want to load http:// urls, you need to set up a proxy.
  • access: protected
integer $dataTimeout (line 48)
  • var: Number of ms to wait before "failing" a dynamic content load.
  • access: protected
boolean $disabled (line 52)
  • var: Disabled tabs cannot be activated.
  • access: protected
string $label (line 56)
  • var: The label of the tab. Can be HTML.
  • access: protected
string $loadMethod (line 60)
  • var: GET/POST. What dataSrc will be loaded with.
  • access: protected
string $preventAbandondedForm (line 68)
  • var: The ID of a form appearing on this tab that you want to prevent people from accidentally leaving without saving. Default: NULL If you put an id in here, a modal dialog will be displayed if the form is dirty and someone tries to switch to another tab. They will be allowed to save, discard changes, or cancel.
  • access: protected

Inherited Variables

Inherited from WFYAHOO

WFYAHOO::$initializeWaitsForID

Inherited from WFWidget

WFWidget::$bindings
WFWidget::$class
WFWidget::$errors
WFWidget::$formatter
WFWidget::$hasRestoredState
WFWidget::$hidden
WFWidget::$name
WFWidget::$value
WFWidget::$widgetLabel

Inherited from WFView

WFView::$children
WFView::$cssImports
WFView::$enabled
WFView::$id
WFView::$importInHead
WFView::$jsActions
WFView::$jsEvents
WFView::$jsImports
WFView::$originalOnEvent
WFView::$page
WFView::$parent
Methods
static method exposedProperties (line 87)
  • access: public
static void exposedProperties ()

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

Constructor.

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

Redefinition of:
WFYAHOO::__construct()
Constructor.
cacheData (line 101)
void cacheData ()
dataSrc (line 105)
void dataSrc ()
dataTimeout (line 109)
void dataTimeout ()
disabled (line 113)
void disabled ()
initJS (line 129)
void initJS ( $blockContent)
  • $blockContent

Redefinition of:
WFYAHOO::initJS()
The initJS function is where YUI widgets perform their bootstrap/initialization.
label (line 117)
void label ()
loadMethod (line 121)
void loadMethod ()
preventAbandondedForm (line 125)
void preventAbandondedForm ()
render (line 133)
void render ([ $blockContent = NULL])
  • $blockContent

Redefinition of:
WFYAHOO::render()
IMPORTANT: The subclasses should get the base class's html, then add the needed code.

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::addErrors()
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::setValuesForKeys()
WFObject::validatedSetValueForKey()
WFObject::validatedSetValueForKeyPath()
WFObject::validateObject()
WFObject::validateValueForKey()
WFObject::validateValueForKeyPath()
WFObject::valueForKey()
WFObject::valueForKeyPath()
WFObject::valueForStaticKey()
WFObject::valueForStaticKeyPath()
WFObject::valueForTargetAndKeyPath()
WFObject::valueForUndefinedKey()
WFObject::valueForUndefinedStaticKey()
WFObject::valuesForKeyPaths()
WFObject::valuesForKeys()
WFObject::_valueForStaticKey()
WFObject::__toString()

Documentation generated on Thu, 14 May 2009 16:20:54 -0400 by phpDocumentor 1.4.2