com.google.gwt.event.dom.client.TouchEndHandler Java Examples

The following examples show how to use com.google.gwt.event.dom.client.TouchEndHandler. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractPaletteItemWidget.java    From appinventor-extensions with Apache License 2.0 6 votes vote down vote up
AbstractPaletteItemWidget(SimpleComponentDescriptor scd, ImageResource image) {
  this.scd = scd;

  AbstractImagePrototype.create(image).applyTo(this);
  this.addStyleName("ode-SimplePaletteItem-button");

  addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      handleClick();
    }
  });
  addTouchStartHandler(new TouchStartHandler() {
    @Override
    public void onTouchStart(TouchStartEvent touchStartEvent) {
      // Otherwise captured by SimplePaletteItem
      touchStartEvent.stopPropagation();
    }
  });
  addTouchEndHandler(new TouchEndHandler() {
    @Override
    public void onTouchEnd(TouchEndEvent touchEndEvent) {
      handleClick();
    }
  });
}
 
Example #2
Source File: HandlerPanel.java    From appinventor-extensions with Apache License 2.0 4 votes vote down vote up
public HandlerRegistration addTouchEndHandler(TouchEndHandler handler) {
  return addDomHandler(handler, TouchEndEvent.getType());
}
 
Example #3
Source File: MockComponent.java    From appinventor-extensions with Apache License 2.0 4 votes vote down vote up
@Override
public final HandlerRegistration addTouchEndHandler(TouchEndHandler handler) {
  return handlers.addHandler(TouchEndEvent.getType(), handler);
}
 
Example #4
Source File: AbstractInput.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public com.google.gwt.event.shared.HandlerRegistration addTouchEndHandler(TouchEndHandler handler) {
	return this.addDomHandler(handler, TouchEndEvent.getType());
}
 
Example #5
Source File: ListItem.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public HandlerRegistration addTouchEndHandler(TouchEndHandler handler) {
	return this.addDomHandler(handler, TouchEndEvent.getType());
}
 
Example #6
Source File: Anchor.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public HandlerRegistration addTouchEndHandler(TouchEndHandler handler) {
	return this.addDomHandler(handler, TouchEndEvent.getType());
}