ABSTRACTCONTAINER


Name space rialto.widget
FILE rialtoEngine\javascript\rialto\widget\abstractContainer.js
NAME ABSTRACTCONTAINER
INHERITS AbstractComponent
VERSION 1.0
update
DESCRIPTION This object is an abstraction which inherits all the widgets who can contains others



CONSTRUCTOR


Example:
This object is instanciate in the constructor of the widgets (same parameter than abstractComponent)

PUBLIC METHODS


Method Arguments list Return value Inherits To redefine
add object elt void no no
removeChild object elt void no no
removeAllChild void no no
isChild object elt boolean no no
hasChild boolean no no
getChilds Array no no
getChildByName String name Array no no
getChildByID String id Object no no
getHtmlCont HTML object no no

add

this method alllow to add an element in the container
Parameters:
object elt:object to add (can be a javascript object or an html element)

removeChild

this method remove a container's component pass in parameter from it
Parameters:
object elt:object to remove (can be a javascript object or an html element)

removeAllChild

this method remove all child elmement
Parameters:

isChild

return true if the component pass in parameter is child of the container
Parameters:
object elt:object to test (can be a javascript object or an html element)

hasChild

return true if the container has child
Parameters:

getChilds

return an array of child elements
Parameters:

getChildByName

return an array of child elements with the given name
Parameters:
String name:name of the child

getChildByID

Return the child with the given id (null if doesn't exist)
Parameters:
String id:id of the child

getHtmlCont

return the HTML element of the object to use as container
Parameters: