|
GWT 2.7.0 | |||||||
| 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.google.gwt.event.dom.client.DomEvent<H>
H - handler typepublic abstract class DomEvent<H extends EventHandler>
DomEvent is a subclass of GwtEvent that provides events that
underlying native browser event object as well as a subclass of DomEvent.Type
that understands GWT event bits used by sinkEvents().
| Nested Class Summary | |
|---|---|
static class |
DomEvent.Type<H extends EventHandler>
Type class used by dom event subclasses. |
| Constructor Summary | |
|---|---|
DomEvent()
|
|
| Method Summary | |
|---|---|
static void |
fireNativeEvent(NativeEvent nativeEvent,
HasHandlers handlerSource)
Fires the given native event on the specified handlers. |
static void |
fireNativeEvent(NativeEvent nativeEvent,
HasHandlers handlerSource,
Element relativeElem)
Fires the given native event on the specified handlers. |
abstract DomEvent.Type<H> |
getAssociatedType()
Returns the Event.Type used to register this event, allowing an
EventBus to find handlers of the appropriate class. |
NativeEvent |
getNativeEvent()
Gets the underlying native event. |
Element |
getRelativeElement()
Gets the element relative to which event coordinates will be measured. |
(package private) static void |
init()
|
void |
preventDefault()
Prevents the wrapped native event's default action. |
void |
setNativeEvent(NativeEvent nativeEvent)
Sets the native event associated with this dom event. |
void |
setRelativeElement(Element relativeElem)
Gets the element relative to which event coordinates will be measured. |
void |
stopPropagation()
Stops the propagation of the underlying native event. |
| Methods inherited from class com.google.gwt.event.shared.GwtEvent |
|---|
assertLive, dispatch, 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 DomEvent()
| Method Detail |
|---|
public static void fireNativeEvent(NativeEvent nativeEvent,
HasHandlers handlerSource)
nativeEvent - the native eventhandlerSource - the source of the handlers to fire
public static void fireNativeEvent(NativeEvent nativeEvent,
HasHandlers handlerSource,
Element relativeElem)
nativeEvent - the native eventhandlerSource - the source of the handlers to firerelativeElem - the element relative to which event coordinates will be
measuredstatic void init()
public abstract DomEvent.Type<H> getAssociatedType()
EventEvent.Type used to register this event, allowing an
EventBus to find handlers of the appropriate class.
getAssociatedType in class GwtEvent<H extends EventHandler>public final NativeEvent getNativeEvent()
HasNativeEvent
getNativeEvent in interface HasNativeEventpublic final Element getRelativeElement()
null, event coordinates will be measured
relative to the window's client area.
public void preventDefault()
public final void setNativeEvent(NativeEvent nativeEvent)
nativeEvent - the native eventpublic void setRelativeElement(Element relativeElem)
relativeElem - the event's relative elementpublic void stopPropagation()
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||