com.maryanovsky.gwtutils.client.ui.touch.gestures.drag
Class DragStartEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<H>
com.maryanovsky.gwtutils.client.event.SyntheticEvent<H,E>
com.maryanovsky.gwtutils.client.ui.touch.gestures.SyntheticTouchGestureEvent<DragStartHandler,TouchStartEvent>
com.maryanovsky.gwtutils.client.ui.touch.gestures.drag.DragStartEvent
public class DragStartEvent
- extends SyntheticTouchGestureEvent<DragStartHandler,TouchStartEvent>
Represents a drag start event.
- Author:
- Maryanovsky Alexander
Methods inherited from class com.google.web.bindery.event.shared.Event |
setSource, toDebugString, toString |
DragStartEvent
public DragStartEvent(TouchStartEvent evt,
PointView location)
- Creates a new
DragStartEvent
from the specified source
TouchStartEvent
and the specified touch location.
- Parameters:
evt
- The touch start event that triggered this event.location
- The location of the finger in the target element's
coordinate system.
getLocation
public PointView getLocation()
- Returns the location of the touch that caused the drag gesture to start,
in the target element's coordinate system.
getType
public static GwtEvent.Type<DragStartHandler> getType()
- Returns the event type associated with drag start events.
getAssociatedType
public GwtEvent.Type<DragStartHandler> getAssociatedType()
- Returns the event type associated with drag start events.
- Overrides:
getAssociatedType
in class GwtEvent<DragStartHandler>
dispatch
protected void dispatch(DragStartHandler handler)
- Dispatches the event to the handler.
- Specified by:
dispatch
in class GwtEvent<DragStartHandler>