org.jboss.errai.ui.cordova.events.touch.swipe
Class SwipeMoveEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<H>
org.jboss.errai.ui.cordova.events.touch.swipe.SwipeEvent<SwipeMoveHandler>
org.jboss.errai.ui.cordova.events.touch.swipe.SwipeMoveEvent
public class SwipeMoveEvent
- extends SwipeEvent<SwipeMoveHandler>
A SwipeMoveEvent
occurs when the user moves his finger over the
display
- Author:
- Daniel Kurka
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
com.google.gwt.event.shared.GwtEvent.Type<H> |
Methods inherited from class com.google.gwt.event.shared.GwtEvent |
assertLive, getSource, isLive, kill, revive |
Methods inherited from class com.google.web.bindery.event.shared.Event |
setSource, toDebugString, toString |
SwipeMoveEvent
public SwipeMoveEvent(TouchPoint touch,
boolean distanceReached,
int distance,
SwipeEvent.Direction direction)
- Construct a
SwipeMoveEvent
- Parameters:
touch
- the touch of the fingerdistanceReached
- is the minimum distance reached for this swipedistance
- the distance in pxdirection
- the direction of the swipe
getType
public static com.google.gwt.event.shared.GwtEvent.Type<SwipeMoveHandler> getType()
getAssociatedType
public com.google.gwt.event.shared.GwtEvent.Type<SwipeMoveHandler> getAssociatedType()
- Overrides:
getAssociatedType
in class com.google.gwt.event.shared.GwtEvent<SwipeMoveHandler>
dispatch
protected void dispatch(SwipeMoveHandler handler)
- Specified by:
dispatch
in class com.google.gwt.event.shared.GwtEvent<SwipeMoveHandler>
getDistance
public int getDistance()
- the distance of this swipe
- Returns:
- the distance of this swipe in px
isDistanceReached
public boolean isDistanceReached()
- is the minimum distance reached
- Returns:
- true if the minimum distance reached
getTouch
public TouchPoint getTouch()
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.