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
-
public class SwipeEndEvent extends SwipeEvent<SwipeEndHandler>
ASwipeEndEvent
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.DIRECTION
-
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H extends Object>
-
-
Constructor Summary
Constructors Constructor Description SwipeEndEvent(boolean distanceReached, int distance, SwipeEvent.DIRECTION direction)
Construct a swipe end event
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dispatch(SwipeEndHandler handler)
com.google.gwt.event.shared.GwtEvent.Type<SwipeEndHandler>
getAssociatedType()
int
getDistance()
the distance the finger has covered in pxstatic com.google.gwt.event.shared.GwtEvent.Type<SwipeEndHandler>
getType()
boolean
isDistanceReached()
is the minimum distance reached by this swipe-
Methods inherited from class org.silverpeas.mobile.client.common.reconizer.swipe.SwipeEvent
getDirection
-
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
-
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
getType
public static com.google.gwt.event.shared.GwtEvent.Type<SwipeEndHandler> getType()
-
getAssociatedType
public com.google.gwt.event.shared.GwtEvent.Type<SwipeEndHandler> getAssociatedType()
- Specified by:
getAssociatedType
in classcom.google.gwt.event.shared.GwtEvent<SwipeEndHandler>
-
dispatch
protected void dispatch(SwipeEndHandler handler)
- Specified by:
dispatch
in 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
-
-