In addition to the set of attributes supported by WidgetParent, the constructor * configuration object can also contain a children which can be used * to add child widgets to the parent during construction. The children * property is an array of either child widget instances or child widget configuration * objects, and is sugar for the add method. See the * add for details on the structure of the child widget * configuration object. * @class WidgetParent * @constructor * @uses ArrayList * @param {Object} config User configuration object. */ function Parent(config) { /** * Fires when a Widget is add as a child. The event object will have a * 'child' property that returns a reference to the child Widget, as well * as an 'index' property that returns a reference to the index specified * when the add() method was called. *
children
* Subscribers to the "on" moment of this event, will be notified * before a child is added. *
* Subscribers to the "after" moment of this event, will be notified * after a child is added. *
* Subscribers to the "on" moment of this event, will be notified * before a child is removed. *
* Subscribers to the "after" moment of this event, will be notified * after a child is removed. *
multiple
mulitple
true
selection
selected
activeDescendant
focused
defaultChildType
childType
type
* This method in invoked after bindUI is invoked for the Widget class * using YUI's aop infrastructure. *
* This method in invoked after renderUI is invoked for the Widget class * using YUI's aop infrastructure. *
By default WidgetParent will render it's children to the parent's content box.
If the children need to be rendered somewhere else, the _childrenContainer property * can be set to the Node which the children should be rendered to. This property should be * set before the _renderChildren method is invoked, ideally in your renderUI method, * as soon as you create the element to be rendered to.
* This method is invoked before the destructor is invoked for the Widget * class using YUI's aop infrastructure. *