Errai 3.0.1-SNAPSHOT

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

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<SwipeStartHandler>
              extended by org.jboss.errai.ui.cordova.events.touch.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

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
SwipeStartEvent(TouchPoint touch, int distance, SwipeEvent.Direction direction)
          Construct a SwipeStartEvent
 
Method Summary
protected  void dispatch(SwipeStartHandler handler)
           
 com.google.gwt.event.shared.GwtEvent.Type<SwipeStartHandler> getAssociatedType()
           
 int getDistance()
          The distance the finger moved before the event occurred
 TouchPoint getTouch()
           
static com.google.gwt.event.shared.GwtEvent.Type<SwipeStartHandler> getType()
           
 
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

SwipeStartEvent

public SwipeStartEvent(TouchPoint touch,
                       int distance,
                       SwipeEvent.Direction direction)
Construct a SwipeStartEvent

Parameters:
touch - the touch of the finger
distance - the distance the finger already moved
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()
Overrides:
getAssociatedType in class com.google.gwt.event.shared.GwtEvent<SwipeStartHandler>

getDistance

public int getDistance()
The distance the finger moved before the event occurred

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 TouchPoint getTouch()

Errai 3.0.1-SNAPSHOT

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