I believe that's just the way of the world. In my case, I either
ignore click or do something that is harmless if called twice, like
highlight my selection.
BTW, in 2.3.0 Label implements HasDoubleClickHandlers. In any case, in
2.0, Listeners are deprecated. The simpler way to do it is to extend
your widget to implement HasDoubleClickHandlers. Example:
public class DoubleClickListBox extends ListBox implements
HasDoubleClickHandlers {
public DoubleClickListBox() {
super();
}
public DoubleClickListBox(boolean isMultipleSelect) {
super(isMultipleSelect);
}
public HandlerRegistration addDoubleClickHandler(DoubleClickHandler
handler) {
return addDomHandler(handler, DoubleClickEvent.getType());
}
}
On Oct 20, 12:31 pm, Anky <[email protected]> wrote:
> Hi,
>
> I am trying to implement double click on Label Widget with GWT 2.0.0
> (This is what our project has been using since last two years). Looks
> like double click is not supported in this version.
>
> Is there any workaround? I saw some solution
> @http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
>
> This works fine when Label will listen for double click only. In my
> case, I need to perform different actions on click and double click.
> When I use the solution from above link, the onclick is called twice
> followed by double click.
>
> Pls suggest
>
> Thanks,
> Anky
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.