Any thoughts on my second point?
Christian Boulanger (Bibliograph) schrieb:
Talking of QxBuilder / QxCompiler, one problem with the current
implementation is that QxBuilder has to provide for all the exeptions
to the rule that children are bound to parent widgets with the add()
method - for example in the QxCombobox, where you have to use
widget.getList().add(child). This leads to a ugly long list of if()
... else if() statements and is hard to maintain -- each time a new
widget is added, you have to adapt the QxBuilder class.
It seems to me to make more sense if this would be handled at the
widget level, and QxBuilder should only provide a generic way of
adding children. I propose to add a addGenericChild() method to the
QxWidget prototype which defaults to add() but can be overridden by
the specific widget to check for special cases. QxComboBox, for
example, can then check the Prototype of the child, and add
QxListItems to the list, QxTabpane can check whether it adds a tab to
the tabpane or a page to the page pane.
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel