Hi all,
is there a method to differentiate the events onClick and onDoubleClick on
the same widget??
i have a flextable and i need to do two different things if i do a single
click or a double click on it.

table.addClickHandler(new ClickHandler() {
    public void onClick(ClickEvent event) {

        System.out.printl("i'm a single click");
    }
});

table.addDoubleClickHandler(new DoubleClickHandler() {
     public void onDoubleClick(DoubleClickEvent event) {

          System.out.println("i'm a double click");
    }
});


Now if i do only single clicks all work great but if i do doubleClick on my
table this is the result:

Click -> DoubleClick

real-output:                                what i need output:
i'm a single click                       i'm a single click
i'm a single click                       i'm a double click
i'm a single click
i'm a double click

so, can i do a double click without that the single click event is call?

Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to