Monday, July 4, 2011

Removing ClickHandler from Button?

Hi,
I am trying to find a way how to remove ClickHandler from Button,
there is no any method related to this. I see that we can remove
ClickListener with removeClickListener(), but there is no way to
remove ClickHandler.

I am using following code:

Button b = new Button("test");
b.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
Window.alert("test");
}
});

Is there any way to remove ClickHandler?

Thanks.

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

No comments:

Post a Comment