Wednesday, April 13, 2011

onclick(Widget w) in version 1.5 and onClick(ClickEvent ce) in version 2.2 - After upgrading

In version gwt 1.5. I used onClick(Widget w):

Ex: when I call setPicture method, I call click action of htmlLink
throught onClick(htmlLink):

In gwt 1.5:

public void setPicture(String url) {
onClick(htmlLink);

}

public void onClick(Widget sender) {
if (sender == htmlLink) {
resetForm();
}
}

In gwt 2.2:
public void onClick(ClickEvent ce) {
Widget sender = (Widget) ce.getSource();
if (sender == htmlLink) {
resetForm();
}
}

So in version gwt 2.2, How do I call onClick(clickevent) ? Where is
the clickEvent of a specific widget gotten ?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate