Thursday, June 28, 2012

Re: HandlerManager for Cells

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){
    Window.alert(sfe.getValue()); //Alert the cell value
  }
});


--
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/-/o5I6foFLkI8J.
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