public class SwipeEndEvent extends SwipeEvent<SwipeEndHandler>
SwipeEndEvent
occurs when the user lifts his finger of the displaySwipeEvent.DIRECTION
Constructor and Description |
---|
SwipeEndEvent(boolean distanceReached,
int distance,
SwipeEvent.DIRECTION direction)
Construct a swipe end event
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(SwipeEndHandler handler) |
com.google.gwt.event.shared.GwtEvent.Type<SwipeEndHandler> |
getAssociatedType() |
int |
getDistance()
the distance the finger has covered in px
|
static com.google.gwt.event.shared.GwtEvent.Type<SwipeEndHandler> |
getType() |
boolean |
isDistanceReached()
is the minimum distance reached by this swipe
|
getDirection
assertLive, getSource, isLive, kill, revive
public SwipeEndEvent(boolean distanceReached, int distance, SwipeEvent.DIRECTION direction)
distanceReached
- was the minumum distance reacheddistance
- the distance that was covered by the fingerdirection
- the direction of the swipepublic static com.google.gwt.event.shared.GwtEvent.Type<SwipeEndHandler> getType()
public com.google.gwt.event.shared.GwtEvent.Type<SwipeEndHandler> getAssociatedType()
getAssociatedType
in class com.google.gwt.event.shared.GwtEvent<SwipeEndHandler>
protected void dispatch(SwipeEndHandler handler)
dispatch
in class com.google.gwt.event.shared.GwtEvent<SwipeEndHandler>
public int getDistance()
public boolean isDistanceReached()
Copyright © 2016 Magnolia International Ltd.. All rights reserved.