Class SwipeEndEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<H>
org.silverpeas.mobile.client.common.reconizer.swipe.SwipeEvent<SwipeEndHandler>
org.silverpeas.mobile.client.common.reconizer.swipe.SwipeEndEvent
A
SwipeEndEvent occurs when the user lifts his finger of the display-
Nested Class Summary
Nested classes/interfaces inherited from class org.silverpeas.mobile.client.common.reconizer.swipe.SwipeEvent
SwipeEvent.DIRECTIONNested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionSwipeEndEvent(boolean distanceReached, int distance, SwipeEvent.DIRECTION direction) Construct a swipe end event -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddispatch(SwipeEndHandler handler) com.google.gwt.event.shared.GwtEvent.Type<SwipeEndHandler>intthe distance the finger has covered in pxstatic com.google.gwt.event.shared.GwtEvent.Type<SwipeEndHandler>getType()booleanis the minimum distance reached by this swipeMethods inherited from class org.silverpeas.mobile.client.common.reconizer.swipe.SwipeEvent
getDirectionMethods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, reviveMethods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
-
Constructor Details
-
SwipeEndEvent
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
-
-
Method Details
-
getType
-
getAssociatedType
- Specified by:
getAssociatedTypein classcom.google.gwt.event.shared.GwtEvent<SwipeEndHandler>
-
dispatch
- Specified by:
dispatchin classcom.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
-