|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.web.bindery.event.shared.Event<H> com.google.gwt.event.shared.GwtEvent<Event.NativePreviewHandler> com.google.gwt.user.client.Event.NativePreviewEvent
public static class Event.NativePreviewEvent
Represents a preview of a native Event
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
---|
GwtEvent.Type<H> |
Constructor Summary | |
---|---|
Event.NativePreviewEvent()
|
Method Summary | |
---|---|
void |
cancel()
Cancel the native event and prevent it from firing. |
void |
consume()
Consume the native event and prevent it from being canceled, even if it has already been canceled by another handler. |
protected void |
dispatch(Event.NativePreviewHandler handler)
Should only be called by HandlerManager . |
GwtEvent.Type<Event.NativePreviewHandler> |
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. |
static GwtEvent.Type<Event.NativePreviewHandler> |
getType()
Gets the type associated with this event. |
int |
getTypeInt()
Gets the type int corresponding to the native event that triggered this preview. |
boolean |
isCanceled()
Has the event already been canceled? Note that isConsumed() will
still return true if the native event has also been consumed. |
boolean |
isConsumed()
Has the native event been consumed? Note that isCanceled() will
still return true if the native event has also been canceled. |
boolean |
isFirstHandler()
Is the current handler the first to preview this event? |
protected void |
revive()
Revives the event. |
Methods inherited from class com.google.gwt.event.shared.GwtEvent |
---|
assertLive, getSource, isLive, kill |
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 Event.NativePreviewEvent()
Method Detail |
---|
public static GwtEvent.Type<Event.NativePreviewHandler> getType()
public void cancel()
consume()
.
Classes overriding this method should still call super.cancel().
public void consume()
Event.NativePreviewHandler
that fire first have priority over later
handlers, so all handlers should check if the event has already been
canceled before calling this method.
public final GwtEvent.Type<Event.NativePreviewHandler> getAssociatedType()
Event
Event.Type
used to register this event, allowing an
EventBus
to find handlers of the appropriate class.
getAssociatedType
in class GwtEvent<Event.NativePreviewHandler>
public NativeEvent getNativeEvent()
HasNativeEvent
getNativeEvent
in interface HasNativeEvent
public final int getTypeInt()
public boolean isCanceled()
isConsumed()
will
still return true if the native event has also been consumed.
cancel()
public boolean isConsumed()
isCanceled()
will
still return true if the native event has also been canceled.
consume()
public boolean isFirstHandler()
protected void dispatch(Event.NativePreviewHandler handler)
GwtEvent
HandlerManager
. In other words, do not use
or call.
dispatch
in class GwtEvent<Event.NativePreviewHandler>
handler
- handlerEventBus.dispatchEvent(Event, Object)
protected void revive()
GwtEvent
revive
in class GwtEvent<Event.NativePreviewHandler>
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |