onCellClicked alternative?

21 views
Skip to first unread message

Navindian

unread,
Jun 22, 2011, 1:34:29 AM6/22/11
to google-we...@googlegroups.com
PFA class.

I am able to implement onCellClicked event with this. Looks like with the latest gwt 2.3.3, it is deprecated. Please suggest alternate way of implementing this in the flextable.

Thanks
navindian
McintoshEntryPoint.java

Thomas Broyer

unread,
Jun 22, 2011, 4:44:59 AM6/22/11
to google-we...@googlegroups.com
From the JavaDoc:
Deprecated. add a click handler instead and use getCellForEvent(ClickEvent) to get the cell information (remember to check for a null return value)

so:

table.addClickHandler(new ClickHandler() {
  @Override
  public void onClick(ClickEvent event) {
    Cell cell = getCellForEvent(event);
    ...
  }
}

Navindian

unread,
Jun 22, 2011, 4:57:55 AM6/22/11
to google-we...@googlegroups.com
Yeah I have done the same.its working for me. Thanks Thomas.

--
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/-/Owq-qU_Kdw0J.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Reply all
Reply to author
Forward
0 new messages