hey, thanks! Now I understand more about the anonymous property. however, my issue isn't completely solved.
I added the listener in _createChildControlIml: function (id) I have a class A that contains a list L which uses my custom listItem, the one that has de listener. There's another list W. Basically, the first list W has several names of workgroups that I use to filter names of contacts in list L. When the user clicks on '+' image in a listItem of L, class A will get some info from the model of list L and do something with it. How can I match the listener of the image in each listItem with the class that uses it? Can I fire an event from customListItem and listen to it from class A? Edu On Fri, May 13, 2011 at 14:45, Christian Hagendorn <[email protected]> wrote: > Hi Edu, > > add a listener to the image, but ensure that you do not set the > anonymous[1] property, otherwise the image doen't get the event. > > Cheers, > Chris > > [1] > http://demo.qooxdoo.org/current/apiviewer/#qx.ui.core.Widget~anonymous > <http://demo.qooxdoo.org/current/apiviewer/#qx.ui.core.Widget%7Eanonymous> > > > > Am 13.05.2011 12:41, schrieb Eduard Gamonal: >> Hi, >> I created a custom widget to be used in a qx.ui.form.List instead of >> ListItem. >> The goal is to have a list with names and a plus image, so when the >> user clicks on the image some logic is performed, but nothing happens >> if the user clicks on the name or anywhere else. >> >> It has a label and an image so far. I don't know how to detect that >> the image was clicked. where should I add the listener? >> >> custom widget code http://pastebin.com/sgtEDxiB >> >> thanks >> >> Edu >> >> ------------------------------------------------------------------------------ >> Achieve unprecedented app performance and reliability >> What every C/C++ and Fortran developer should know. >> Learn how Intel has extended the reach of its next-generation tools >> to help boost performance applications - inlcuding clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> qooxdoo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
