|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.ui.cordova.events.touch.AbstractRecognizer
org.jboss.errai.ui.cordova.events.touch.swipe.SwipeRecognizer
public class SwipeRecognizer
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jboss.errai.ui.cordova.events.touch.AbstractRecognizer |
---|
AbstractRecognizer.State |
Constructor Summary | |
---|---|
SwipeRecognizer(com.google.gwt.event.shared.HasHandlers source)
construct a swipe recognizer |
|
SwipeRecognizer(com.google.gwt.event.shared.HasHandlers source,
int minDistance)
construct a swipe recognizer |
|
SwipeRecognizer(com.google.gwt.event.shared.HasHandlers source,
int minDistance,
int threshold)
construct a swipe recognizer |
Method Summary | |
---|---|
int |
getMinDistance()
the distance that needs to be covered before counting as a swipe |
int |
getThreshold()
the threshold before an event is fired (deadzone) |
void |
onTouchCancel(com.google.gwt.event.dom.client.TouchCancelEvent event)
|
void |
onTouchEnd(com.google.gwt.event.dom.client.TouchEndEvent event)
|
void |
onTouchMove(com.google.gwt.event.dom.client.TouchMoveEvent event)
|
void |
onTouchStart(com.google.gwt.event.dom.client.TouchStartEvent event)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwipeRecognizer(com.google.gwt.event.shared.HasHandlers source)
source
- the source to fire events onpublic SwipeRecognizer(com.google.gwt.event.shared.HasHandlers source, int minDistance)
source
- the source to fire events onminDistance
- the minimum distance to cover before this counts as a swipepublic SwipeRecognizer(com.google.gwt.event.shared.HasHandlers source, int minDistance, int threshold)
source
- the source to fire events onminDistance
- the minimum distance to cover before this counts as a swipethreshold
- the initial threshold before swipe start is firedMethod Detail |
---|
public void onTouchStart(com.google.gwt.event.dom.client.TouchStartEvent event)
public void onTouchMove(com.google.gwt.event.dom.client.TouchMoveEvent event)
public void onTouchEnd(com.google.gwt.event.dom.client.TouchEndEvent event)
public void onTouchCancel(com.google.gwt.event.dom.client.TouchCancelEvent event)
public int getThreshold()
public int getMinDistance()
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |