Hello Fritz, I have a prototype for you showing how to extend the list and add a widget on top:
http://tinyurl.com/qewzn5a Extending requires overriding the _createChildControlImpl of the AbstractScrollArea but that is only a bit of code compared to writing a wrapper. Regards, Martin Am 24.06.2013 um 13:36 schrieb Fritz Zaucker <[email protected]>: > Hi Mustafa, > > On Mon, 24 Jun 2013, Mustafa Sak wrote: > >> I can see your dilemma. The easy way of most qooxdoo widgets just to >> extend and add some more child controls is difficult in qx.ui.form.List(). >> Because it extends from qx.ui.core.scroll.AbstractScrollArea. The scroller >> uses normally grid layout. Adding on top of it means to override the whole >> _createChildControlImpl. > > exactly. This is what I did so far, having the disadvantage that when > something is changed in qx.ui.form.List() in future versions of Qooxdoo I > will have to modify _creatChildControlImpl again (which is easily overlooked > if functionality doesn't break completely). > >> I guess my example http://tinyurl.com/kfc2a7u can be a nice wrapper. This >> solution allows you to access directly to the api of form-list. I just >> created a list and injected it as a childcontrol into a wrapper which also >> holds the toolbar. > > But doesn't that mean that I'd have to implement all methods of > qx.ui.form.List() in class myList as well (and there call the corresponding > method of the "internal" list)? Including all the inherited methods? > > Cheers, > Fritz > >> Hope I could help. >> >> Gruß >> Mustafa Sak >> >> Applications & Integration >> 1&1 Internet AG >> Ernst-Frey-Straße 10 >> DE-76135 Karlsruhe >> >> -----Ursprüngliche Nachricht----- >> Von: Fritz Zaucker [mailto:[email protected]] >> Gesendet: Montag, 24. Juni 2013 08:41 >> An: qooxdoo Development >> Betreff: [qooxdoo-devel] How to extending qx.ui.form.List() >> >> Hi, >> >> I need to extend qx.ui.form.List() to have a form widget with two buttons >> (add and clear) for manipulation the selection of elements in the list: >> >> ------------- >> | All | Clr | >> ------------- >> | Item 1 | >> | Item 2 | >> | Item 3 | >> | Item 4 | >> | ... | >> ------------- >> >> The All and Clr buttons should be outside the scroll area of the List widget >> (e.g. NOT be scrolled). >> >> My question is: how can I create such a widget in a Qooxdoo-OO way (that is >> without copying too much code)? >> >> Is it somehow possible to extend qx.ui.formm.List() and "insert" the two >> buttons into the widgets layout? >> >> Or do I have to create a wrapper widget (using a container widget)? In this >> case, is there an efficient way to wrap all the List widget methods as well? >> >> Thanks, >> Fritz >> >> > > -- > Oetiker+Partner AG tel: +41 62 775 9903 (direct) > Fritz Zaucker +41 62 775 9900 (switch board) > Aarweg 15 +41 79 675 0630 (mobile) > CH-4600 Olten fax: +41 62 775 9905 > Schweiz web: > www.oetiker.ch------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev_______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
