Thanks guys. The fix worked for me.
Cheers,
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/-/VWvM4vMkTPkJ.
To post to this group, send
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:
What I want to do is fire an event from a cell so that some other widget
can listen to it? For example, I have a text input cell in a table to which
I want to attach a focus handler.
Like:
column.getCell().addFocusHandler(new SomeFocusHandler(){
public void onFocus(SomeFocusEvent sfe){
You could try table.addCellPreviewHandler(). Basically the handler is
called before a cell receives the event in its Cell.onBrowserEvent()
method. The PreviewEvent gives you access to the event type, column index
and the row value. So you could check for the focus event and the column
and then
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