|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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<DragEndHandler,TouchEndEvent>
com.maryanovsky.gwtutils.client.ui.touch.gestures.drag.DragEndEvent
public class DragEndEvent
Represents a drag end event.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
---|
GwtEvent.Type<H> |
Constructor Summary | |
---|---|
DragEndEvent(TouchEndEvent evt,
PointView location,
PointView offset)
Creates a new DragEndEvent from the specified source
TouchEndEvent , touch location and offset from the initial touch
point. |
Method Summary | |
---|---|
protected void |
dispatch(DragEndHandler handler)
Dispatches the event to the handler. |
GwtEvent.Type<DragEndHandler> |
getAssociatedType()
Returns the event type associated with drag end events. |
PointView |
getLocation()
Returns the location of the lifted finger, in the target element's coordinate system. |
PointView |
getOffset()
Returns the offset of the lifted finger from the initial touching location. |
static GwtEvent.Type<DragEndHandler> |
getType()
Returns the event type associated with drag end events. |
Methods inherited from class com.maryanovsky.gwtutils.client.event.SyntheticEvent |
---|
getSourceEvent |
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 |
---|
public DragEndEvent(TouchEndEvent evt, PointView location, PointView offset)
DragEndEvent
from the specified source
TouchEndEvent
, touch location and offset from the initial touch
point.
evt
- The touch end event that triggered this event.location
- The location of the finger in the target element's
coordinate system.offset
- The offset of the finger from the location where it was
pressed.Method Detail |
---|
public PointView getLocation()
public PointView getOffset()
public static GwtEvent.Type<DragEndHandler> getType()
public GwtEvent.Type<DragEndHandler> getAssociatedType()
getAssociatedType
in class GwtEvent<DragEndHandler>
protected void dispatch(DragEndHandler handler)
dispatch
in class GwtEvent<DragEndHandler>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |