A tree widget for our framework. Uses Yahoo! YUI library.
PHOCOA Builder Setup:
Required:
Optional:
Located in /framework/widgets/yahoo/WFYAHOO_widget_TreeView.php (line 24)
WFObject | --WFView | --WFWidget | --WFYAHOO | --WFYAHOO_widget_TreeView
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
Convert an array of WFYAHOO_widget_TreeViewNode objects into the XML that the UI widget expects in JS.
Helper function for the dynamicCallback page to use to send the data back to the WFYAHOO_widget_TreeView via AJAX.
This function will create the XML data representation of the node data and pass it back to the client.
NOTE: Script execution stops inside of this function.
Constructor.
AJAX callback function which will be called when the tree needs more node data.
NOTE: must be public or is_callable fails.
Are we in dynamic data loading mode?
Set the base URL used for the dynamic data loading.
The format of the callback is that WFYAHOO_widget_TreeView will add one parameter to the end of that URL which contains the "path" to the tree node that child data is needed for. For example, a parameter of "GA|Atlanta Metro|Decatur" means that the child data for the node at "GA > Atlanta Metro > Decatur" is needed.
The URL should not have a trailing slash.
The URL should be urlencoded.
The URL should perform the following action:
Set up a dataloader callback for dynamically loading child data.
The callback function prototype is:
(array) loadNodesCallback($path)
Where $path is a '|' separated list of ID's to the node whose child data is needed, and you return an array of WFYAHOO_widget_TreeViewNode objects.
For example, a $path of "USA|Georgia" means that the child data for the node at "USA > Georgia" is needed.
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:29 -0500 by phpDocumentor 1.4.1