org.jboss.errai.ui.cordova.events.touch.swipe
Class SwipeStartEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<H>
org.jboss.errai.ui.cordova.events.touch.swipe.SwipeEvent<SwipeStartHandler>
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 classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
com.google.gwt.event.shared.GwtEvent.Type<H> |
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 |
SwipeStartEvent
public SwipeStartEvent(TouchPoint touch,
int distance,
SwipeEvent.Direction direction)
- Construct a
SwipeStartEvent
- Parameters:
touch
- the touch of the fingerdistance
- the distance the finger already moveddirection
- the direction of the finger
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()
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.