Short answer: YES :)

Sebastian


Dietrich Streifert schrieb:
> Hello List,
> 
> while trying to do some optimizations the add() method showed up as time 
> consuming in the firebug profiler.
> 
> Having a look at qx.ui.core.Widget I found the add() implementation 
> which allows a variable argument list with one or more widgets to add 
> and a test if the passed object is addable at all.
> 
> The addition itself is done by calling the setParent to the widget which 
> should be added passing the parents ref as parameter.
> 
> When I know that the widget which should be added is correct and I know 
> that I just want to add one widget: Is it sufficient and safe to call 
> setParent instead of add?
> I mean is
> 
>   child.setParent(parent);
> 
> equivalent to
> 
>   parent.add(child);
> 
> ?
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to