Errai 3.0.1-SNAPSHOT

org.jboss.errai.ui.cordova.events.touch.swipe
Class SwipeMoveEvent

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<H>
          extended by org.jboss.errai.ui.cordova.events.touch.swipe.SwipeEvent<SwipeMoveHandler>
              extended by org.jboss.errai.ui.cordova.events.touch.swipe.SwipeMoveEvent

public class SwipeMoveEvent
extends SwipeEvent<SwipeMoveHandler>

A SwipeMoveEvent occurs when the user moves his finger over the display

Author:
Daniel Kurka

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.errai.ui.cordova.events.touch.swipe.SwipeEvent
SwipeEvent.Direction
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H>
 
Constructor Summary
SwipeMoveEvent(TouchPoint touch, boolean distanceReached, int distance, SwipeEvent.Direction direction)
          Construct a SwipeMoveEvent
 
Method Summary
protected  void dispatch(SwipeMoveHandler handler)
           
 com.google.gwt.event.shared.GwtEvent.Type<SwipeMoveHandler> getAssociatedType()
           
 int getDistance()
          the distance of this swipe
 TouchPoint getTouch()
           
static com.google.gwt.event.shared.GwtEvent.Type<SwipeMoveHandler> getType()
           
 boolean isDistanceReached()
          is the minimum distance reached
 
Methods inherited from class org.jboss.errai.ui.cordova.events.touch.swipe.SwipeEvent
getDirection
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
 
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SwipeMoveEvent

public SwipeMoveEvent(TouchPoint touch,
                      boolean distanceReached,
                      int distance,
                      SwipeEvent.Direction direction)
Construct a SwipeMoveEvent

Parameters:
touch - the touch of the finger
distanceReached - is the minimum distance reached for this swipe
distance - the distance in px
direction - the direction of the swipe
Method Detail

getType

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

getAssociatedType

public com.google.gwt.event.shared.GwtEvent.Type<SwipeMoveHandler> getAssociatedType()
Overrides:
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 TouchPoint getTouch()

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.