org.jboss.errai.ui.cordova.events.touch.swipe
Class SwipeEndEvent
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<SwipeEndHandler>
org.jboss.errai.ui.cordova.events.touch.swipe.SwipeEndEvent
public class SwipeEndEvent
- extends SwipeEvent<SwipeEndHandler>
A SwipeEndEvent
occurs when the user lifts his finger of 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 |
SwipeEndEvent
public SwipeEndEvent(boolean distanceReached,
int distance,
SwipeEvent.Direction direction)
- Construct a swipe end event
- Parameters:
distanceReached
- was the minumum distance reacheddistance
- the distance that was covered by the fingerdirection
- the direction of the swipe
getType
public static com.google.gwt.event.shared.GwtEvent.Type<SwipeEndHandler> getType()
getAssociatedType
public com.google.gwt.event.shared.GwtEvent.Type<SwipeEndHandler> getAssociatedType()
- Overrides:
getAssociatedType
in class com.google.gwt.event.shared.GwtEvent<SwipeEndHandler>
dispatch
protected void dispatch(SwipeEndHandler handler)
- Specified by:
dispatch
in class com.google.gwt.event.shared.GwtEvent<SwipeEndHandler>
getDistance
public int getDistance()
- the distance the finger has covered in px
- Returns:
- the distance in px
isDistanceReached
public boolean isDistanceReached()
- is the minimum distance reached by this swipe
- Returns:
- true if minimum distance was reached
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.