public class TapRecognizer extends Object implements TouchHandler
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DISTANCE |
Constructor and Description |
---|
TapRecognizer(com.google.gwt.event.shared.HasHandlers source) |
TapRecognizer(com.google.gwt.event.shared.HasHandlers source,
int distance) |
Modifier and Type | Method and Description |
---|---|
int |
getDistance() |
protected EventPropagator |
getEventPropagator() |
com.google.gwt.user.client.Element |
getTargetElement() |
void |
onTouchCanceled(TouchCancelEvent event)
Called when a touch cancel event is fired.
|
void |
onTouchEnd(TouchEndEvent event)
Called when a touch end event is fired.
|
void |
onTouchMove(TouchMoveEvent event)
Called when a touch end move is fired.
|
void |
onTouchStart(TouchStartEvent event)
onTouchStart
|
public static final int DEFAULT_DISTANCE
public TapRecognizer(com.google.gwt.event.shared.HasHandlers source)
public TapRecognizer(com.google.gwt.event.shared.HasHandlers source, int distance)
public void onTouchStart(TouchStartEvent event)
TouchStartHandler
onTouchStart
onTouchStart
in interface TouchStartHandler
event
- a TouchStartEvent
object.public void onTouchMove(TouchMoveEvent event)
TouchMoveHandler
onTouchMove
in interface TouchMoveHandler
event
- the TouchMoveEvent
that was firedpublic void onTouchEnd(TouchEndEvent event)
TouchEndHandler
onTouchEnd
in interface TouchEndHandler
event
- the TouchEndEvent
that was firedpublic void onTouchCanceled(TouchCancelEvent event)
TouchCancelHandler
onTouchCanceled
in interface TouchCancelHandler
event
- the TouchCancelEvent
that was firedpublic int getDistance()
protected EventPropagator getEventPropagator()
public com.google.gwt.user.client.Element getTargetElement()
Copyright © 2019 Magnolia International Ltd.. All rights reserved.