public void add ( HtmlObject child ) { asDivPanel ( ) . add ( child ) ; if ( child instanceof AbstractHtmlObject ) { ( ( AbstractHtmlObject ) child ) . setParent ( this ) ; } child . setLeft ( child . getLeft ( ) ) ; child . setTop ( child . getTop ( ) ) ; }
Add a new child HtmlObject to the list . Note that using this method children are added to the back of the list which means that they are added on top of the visibility stack and thus may obscure other children . Take this order into account when adding children .