@Override public void onTouchEnd(TouchEndEvent event) { if (event.getSource().equals(btnOperacion)) { if (modo.equalsIgnoreCase("ADD")) { addEquipos(); } else if (modo.equalsIgnoreCase("REMOVE")) { removeEquipos(); } } }
public HandlerRegistration addTouchEndHandler(TouchEndHandler handler) { return addDomHandler(handler, TouchEndEvent.getType()); }
private void addDomHandlers(Widget w) { w.addDomHandler(this, MouseDownEvent.getType()); w.addDomHandler(this, MouseUpEvent.getType()); w.addDomHandler(this, TouchStartEvent.getType()); w.addDomHandler(this, TouchEndEvent.getType()); }