Tuesday, September 7, 2010

Re: How to block click event?

Instead of trying to block the event, why not just eat it. In your
widget, on the click event, check the state of the widget. If the
state is enable, only then fire the click event to any registered
listeners.

HTH,
Chad

On Sep 6, 10:06 am, ulgerang <ulger...@gmail.com> wrote:
> Hi,
>
> I am making 'ImageButton' that extends 'Image' and implemented
> 'HasEnabled' interface.
> I made 3 state, disable,mouseover, enable.
> When I was making disable,  I have to block the click event  from the
> widget.
> but  I couldn't find the way.
>
> Is there any way to block the click event?

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