Class SwipeStartEvent
- 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<SwipeStartHandler>
-
- org.silverpeas.mobile.client.common.reconizer.swipe.SwipeStartEvent
-
public class SwipeStartEvent extends SwipeEvent<SwipeStartHandler>
ASwipeStartEventis fired when the user moves his finger over a certain amount on 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 SwipeStartEvent(TouchCopy touch, int distance, SwipeEvent.DIRECTION direction)Construct aSwipeStartEvent
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddispatch(SwipeStartHandler handler)com.google.gwt.event.shared.GwtEvent.Type<SwipeStartHandler>getAssociatedType()intgetDistance()The distance the finger moved before the event occuredTouchCopygetTouch()static com.google.gwt.event.shared.GwtEvent.Type<SwipeStartHandler>getType()-
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
-
SwipeStartEvent
public SwipeStartEvent(TouchCopy touch, int distance, SwipeEvent.DIRECTION direction)
Construct aSwipeStartEvent- Parameters:
distance- the distance the finger already movedtouch-direction- the direction of the finger
-
-
Method Detail
-
getType
public static com.google.gwt.event.shared.GwtEvent.Type<SwipeStartHandler> getType()
-
getAssociatedType
public com.google.gwt.event.shared.GwtEvent.Type<SwipeStartHandler> getAssociatedType()
- Specified by:
getAssociatedTypein classcom.google.gwt.event.shared.GwtEvent<SwipeStartHandler>
-
getDistance
public int getDistance()
The distance the finger moved before the event occured- Returns:
- the distance in px
-
dispatch
protected void dispatch(SwipeStartHandler handler)
- Specified by:
dispatchin classcom.google.gwt.event.shared.GwtEvent<SwipeStartHandler>
-
getTouch
public TouchCopy getTouch()
-
-