Class SwipeEndEvent

    • Constructor Detail

      • SwipeEndEvent

        public SwipeEndEvent​(boolean distanceReached,
                             int distance,
                             SwipeEvent.DIRECTION direction)
        Construct a swipe end event
        Parameters:
        distanceReached - was the minumum distance reached
        distance - the distance that was covered by the finger
        direction - 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 class com.google.gwt.event.shared.GwtEvent<SwipeEndHandler>
      • dispatch

        protected void dispatch​(SwipeEndHandler handler)
        Specified by:
        dispatch in class com.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