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<SwipeMoveHandler>
org.silverpeas.mobile.client.common.reconizer.swipe.SwipeMoveEvent

public class SwipeMoveEvent extends SwipeEvent<SwipeMoveHandler>
A SwipeMoveEvent occurs when the user moves his finger over the display
  • Constructor Details

    • SwipeMoveEvent

      public SwipeMoveEvent(TouchCopy touch, boolean distanceReached, int distance, SwipeEvent.DIRECTION direction)
      Construct a SwipeMoveEvent
      Parameters:
      touch -
      distanceReached - is the minimum distance reached for this swipe
      distance - the distance in px
      direction - the direction of the swipe
  • Method Details

    • getType

      public static com.google.gwt.event.shared.GwtEvent.Type<SwipeMoveHandler> getType()
    • getAssociatedType

      public com.google.gwt.event.shared.GwtEvent.Type<SwipeMoveHandler> getAssociatedType()
      Specified by:
      getAssociatedType in class com.google.gwt.event.shared.GwtEvent<SwipeMoveHandler>
    • dispatch

      protected void dispatch(SwipeMoveHandler handler)
      Specified by:
      dispatch in class com.google.gwt.event.shared.GwtEvent<SwipeMoveHandler>
    • getDistance

      public int getDistance()
      the distance of this swipe
      Returns:
      the distance of this swipe in px
    • isDistanceReached

      public boolean isDistanceReached()
      is the minimum distance reached
      Returns:
      true if the minimum distance reached
    • getTouch

      public TouchCopy getTouch()