To bind events like click with GQuery you can do something like:
@UiField
Element myButton;
...
$(myButton).on("click", new Function() {
@Override
public void f() {
// event is triggered
}
}
What I need is support for touch events like Tap as it was implemented in MGWT. In MGWT you can use a TouchPanel to get a tap event like this:
@UiField
TouchPanel panel;
...
panel.addTapHandler(...);
Is there a way to bind a tap event with GQuery as it is done for the TouchPanel?