I am building a custom widget using qx.html.Element objects to build the
component.
I have added a mouse listener to my element. My question is how to get back
to the original qx.html.Element in the event listener callback.
The object provided by the event (via getTarget()) is the DOM-element and
not the qx.html.Element.
Is there a way to get hold of this reference in the callback?

var cell = new qx.html.Element("td");
cell.addListener("mousedown", this._cellMouseListener, this);
...

_cellMouseListener: function(event) {
        var element = event.getTarget();
        // This is not the original qx.html.Element.
        // How do I get a reference to that?

}                               
-- 
View this message in context: 
http://n2.nabble.com/Adding-listeners-to-qx-html-Element-tp4701498p4701498.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to