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>
A SwipeStartEvent is fired when the user moves his finger over a certain amount on the display
  • Constructor Details

    • SwipeStartEvent

      public SwipeStartEvent(TouchCopy touch, int distance, SwipeEvent.DIRECTION direction)
      Construct a SwipeStartEvent
      Parameters:
      distance - the distance the finger already moved
      touch -
      direction - the direction of the finger
  • Method Details

    • 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:
      getAssociatedType in class com.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:
      dispatch in class com.google.gwt.event.shared.GwtEvent<SwipeStartHandler>
    • getTouch

      public TouchCopy getTouch()