public class MovedEvent extends AbstractSmartEvent<MovedHandler>
GwtEvent.Type<H>jsObj| Constructor and Description |
|---|
MovedEvent(JavaScriptObject jsObj) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatch(MovedHandler handler) |
static <S extends HasMovedHandlers & HasHandlers> |
fire(S source,
JavaScriptObject jsObj)
Fires a open event on all registered handlers in the handler manager.If no
such handlers exist, this method will do nothing.
|
GwtEvent.Type<MovedHandler> |
getAssociatedType() |
int |
getDeltaX()
horizontal difference between current and previous position
|
int |
getDeltaY()
vertical difference between current and previous position
|
static GwtEvent.Type<MovedHandler> |
getType()
Gets the type associated with this event.
|
assertLive, getSource, isLive, kill, revivesetSource, toDebugString, toStringpublic MovedEvent(JavaScriptObject jsObj)
public static <S extends HasMovedHandlers & HasHandlers> void fire(S source, JavaScriptObject jsObj)
S - The event sourcesource - the source of the handlersjsObj - the native eventpublic static GwtEvent.Type<MovedHandler> getType()
protected void dispatch(MovedHandler handler)
dispatch in class GwtEvent<MovedHandler>public final GwtEvent.Type<MovedHandler> getAssociatedType()
getAssociatedType in class GwtEvent<MovedHandler>public int getDeltaX()
public int getDeltaY()