removeClickListner() is deprecated if I am not mistaken...

Anyway the big question is why remove the clickHandler from your button in
the first place a button that can not be clicked is nothing more then a
label with a border...
I would suggest disabling the button or simply have the clickHandler return
instead of doing anything... in both cases for the user nothing will happen
once they click the button.

just my 2 cents.

Regards,

Rob

On Tue, Jul 5, 2011 at 1:05 AM, Milan Cvejic <liquidbra...@gmail.com> wrote:

> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to