public class SwipeMoveEvent extends SwipeEvent<SwipeMoveHandler>
SwipeMoveEvent
occurs when the user moves his finger over the
displaySwipeEvent.Direction
Constructor and Description |
---|
SwipeMoveEvent(TouchPoint touch,
boolean distanceReached,
int distance,
SwipeEvent.Direction direction)
Construct a
SwipeMoveEvent |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(SwipeMoveHandler handler) |
com.google.gwt.event.shared.GwtEvent.Type<SwipeMoveHandler> |
getAssociatedType() |
int |
getDistance()
the distance of this swipe
|
TouchPoint |
getTouch() |
static com.google.gwt.event.shared.GwtEvent.Type<SwipeMoveHandler> |
getType() |
boolean |
isDistanceReached()
is the minimum distance reached
|
getDirection
assertLive, getSource, isLive, kill, revive
public SwipeMoveEvent(TouchPoint touch, boolean distanceReached, int distance, SwipeEvent.Direction direction)
SwipeMoveEvent
touch
- the touch of the fingerdistanceReached
- is the minimum distance reached for this swipedistance
- the distance in pxdirection
- the direction of the swipepublic static com.google.gwt.event.shared.GwtEvent.Type<SwipeMoveHandler> getType()
public com.google.gwt.event.shared.GwtEvent.Type<SwipeMoveHandler> getAssociatedType()
getAssociatedType
in class com.google.gwt.event.shared.GwtEvent<SwipeMoveHandler>
protected void dispatch(SwipeMoveHandler handler)
dispatch
in class com.google.gwt.event.shared.GwtEvent<SwipeMoveHandler>
public int getDistance()
public boolean isDistanceReached()
public TouchPoint getTouch()
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.