Example #1
0
 @Override
 public void onTouchEnd(TouchEndEvent event) {
   if (event.getSource().equals(btnOperacion)) {
     if (modo.equalsIgnoreCase("ADD")) {
       addEquipos();
     } else if (modo.equalsIgnoreCase("REMOVE")) {
       removeEquipos();
     }
   }
 }
Example #2
0
 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());
 }