com.google.gwt.event.dom.client.TouchStartHandler Java Examples
The following examples show how to use
com.google.gwt.event.dom.client.TouchStartHandler.
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 |
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: SimplePaletteItem.java From appinventor-extensions with Apache License 2.0 | 5 votes |
private void addHandlers() { addMouseDownHandler(new MouseDownHandler() { @Override public void onMouseDown(MouseDownEvent arg0) { select(getWidget()); } }); addTouchStartHandler(new TouchStartHandler() { @Override public void onTouchStart(TouchStartEvent event) { select(getWidget()); } }); }
Example #3
Source File: HandlerPanel.java From appinventor-extensions with Apache License 2.0 | 4 votes |
public HandlerRegistration addTouchStartHandler(TouchStartHandler handler) { return addDomHandler(handler, TouchStartEvent.getType()); }
Example #4
Source File: MockComponent.java From appinventor-extensions with Apache License 2.0 | 4 votes |
@Override public final HandlerRegistration addTouchStartHandler(TouchStartHandler handler) { return handlers.addHandler(TouchStartEvent.getType(), handler); }
Example #5
Source File: AbstractInput.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 4 votes |
@Override public com.google.gwt.event.shared.HandlerRegistration addTouchStartHandler(TouchStartHandler handler) { return this.addDomHandler(handler, TouchStartEvent.getType()); }
Example #6
Source File: ListItem.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 4 votes |
@Override public HandlerRegistration addTouchStartHandler(TouchStartHandler handler) { return this.addDomHandler(handler, TouchStartEvent.getType()); }
Example #7
Source File: Anchor.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 4 votes |
@Override public HandlerRegistration addTouchStartHandler(TouchStartHandler handler) { return this.addDomHandler(handler, TouchStartEvent.getType()); }