Class DwtComposite
Class Detail
DwtComposite(params)
Method Detail
addChild(child, index)
Adds the given child control to this composite at the index (if specified).
cleanupSeparators()
collapses consecutive separators into one. Gets rid of head or tail separators as well .
Note that is does not remove the separators, just hides them so they can re-displayed as needed, next time this is called and other elements
become visible
this would be used on such subclasses as DwtMenu and DwtToolbar .
However, currently it does not work with the toolbars, since separators there are not added as children to the toolbar composite.
I tried to make it consistent with the DwtMenu approach, but it seemed a bit complicated right now.
so for now I try to make it so no complete groups (items between separators) are hidden at one time. It might also be possible
to do it for the toolbar using the _items HTML elements array, but probably less elegant than this approach.
clear()
Clears the composite HTML element of content and removes
all composite children by calling
removeChildren .
dispose()
Disposes of the control. This method will remove the control from under the
control of it's parent and release any resources associate with the component.
The method will also notify any event listeners on registered DwtEvent.DISPOSE event type.
In the case of DwtComposite this method will also dispose of all of the composite's children.
Subclasses may override this method to perform their own dispose functionality but
should generally call the parent
{DwtControl}
getChild(index)
Get the Nth child of this composite.
{array}
getChildren()
Get a list of children of this composite.
{number}
getNumChildren()
Gets the number of children of this composite.
{DwtComposite|DwtTabGroup}
getTabGroupMember()
Return this.tabGroupMember if present (it always overrides any other contender), otherwise if this composite has
children return the composite tab group, otherwise just return this control (instead of a group with one member).
removeChild(child)
Removes the specified child control from this control. A removed child is no longer retrievable via
getHtmlElement() , so there is an option to save a reference to the removed child.
That way it can be added later using addChild() .
removeChildren()
Removes all of the composite children.
|
||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:27 GMT-0400 (EDT)
|