Yes, Thomas is right, don't forget to add object to refer as this in a
function. I just demonstrated a workaround for your issue.

It makes sense to add changeFocusedCell event to Table. What does qx
team think about it?


If we speak about passing this, qx.lang.Function.bind(func, self)
architecturally speaks better to me. It's cleaner and easier to read a
code.

obj.addListener("someevent", qx.lang.Func.bind(func, self));

instead of

obj.addListener("someevent", func, self);

There was a discussion not so long ago about it. My 2 cents go for
deprecating existing way of passing self obj to function.


---
Ian Horst

On 03/09/10 21:02, Fink, Andreas wrote:
> Hi Thomas, Hi Ian,
>  
> many thanks to your replies. 
> Sometimes it's that easy :)
>  
>> The first thing that leaps to the eye in your example is that you are not 
>> passing 'this' to addListener(), so the "this.isSelectionEmpty" is in danger 
>> of not getting the right context.
> Your right thats nothing I would use in production. 
> Please correct me, but 'this' in the handler-function reference the object 
> the listener is added to, by default? Or is that not for sure?
>  
>> Interesting question. There are no any events for focused cell change.
> I feared that I unlearned using the API... Glad to here that there is no 
> event, or not glad about it... you know what I mean ;)
>  
> Regards,
> Andreas
>  
>  
> 
> 
> 
> ------------------------------------------------------------------------------
> 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
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
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
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to