Thanks Alex and Matt.

Alex, I've tried your solution. In my event handler, I wrote

var oList = e.getTarget().getLayoutParent();

When the list is empty, I double clicked it and I saw oList is exactly the
list I clicked on. That means I can do oList.getSelectedItem() immediately
without using userdata. 

However, if the list is NOT empty and I double clicked on a list item, oList
is no longer the list, instead it is a qx.ui.container.Composite. 

I may understand why I got different results, but I think it's some kind
inconsistency and brings problem to development.

Since I added a listener to the list control, then why can't I get another
argument i.e. sender (the list in this case, not a part inside the list)
besides the event in the event handler?

-- 
View this message in context: 
http://www.nabble.com/How-to-id-the-event-sender--tp20268466p20299780.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to