Thursday, June 28, 2012

Re: HandlerManager for Cells

In your Cell constructor you have to call super("focus") to let the cell sink focus events and then overwrite onBrowserEvent() to catch them.

Alternatively you could use GWT 2.5 which introduces UiBinder for Cells along with event handler support (see: http://googlewebtoolkit.blogspot.de/2012/06/gwt-2.html).

-- J.

Am Donnerstag, 28. Juni 2012 07:35:04 UTC+2 schrieb Mohit:
Hello everybody,

I have a requirement in my project to have event handlers to cells. For example, there is a TextInputCell to which I want to attach a handler to focus event. But AbstractCell doesn't provide any HandlerManager functionality to which I can add a handler.

Does anybody has suggestions on how to implement this? Shall I extend TextInputCell and add HandlerManager to it?

Thanks
Mohit

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Dx2Q0-NgsKEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment