java.lang.Object | ||
↳ | com.google.gwt.event.shared.GwtEvent<H extends com.google.gwt.event.shared.EventHandler> | |
↳ | com.google.gwt.user.client.Event.NativePreviewEvent |
Represents a preview of a native Event
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Cancel the native event and prevent it from firing.
| |||||||||||
Consume the native event and prevent it from being canceled, even if it
has already been canceled by another handler.
| |||||||||||
Returns the type used to register this event.
| |||||||||||
Gets the underlying native event.
| |||||||||||
Gets the type associated with this event.
| |||||||||||
Gets the type int corresponding to the native event that triggered this
preview.
| |||||||||||
Has the event already been canceled? Note that
isConsumed() will
still return true if the native event has also been consumed. | |||||||||||
Has the native event been consumed? Note that
isCanceled() will
still return true if the native event has also been canceled. | |||||||||||
Is the current handler the first to preview this event?
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Should only be called by
HandlerManager . | |||||||||||
Revives the event.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class com.google.gwt.event.shared.GwtEvent | |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.google.gwt.event.dom.client.HasNativeEvent
|
Cancel the native event and prevent it from firing. Note that the event
can still fire if another handler calls consume()
.
Classes overriding this method should still call super.cancel().
Consume the native event and prevent it from being canceled, even if it
has already been canceled by another handler.
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.
Returns the type used to register this event. Used by handler manager to dispatch events to the correct handlers.
Gets the type associated with this event.
Gets the type int corresponding to the native event that triggered this preview.
Has the event already been canceled? Note that isConsumed()
will
still return true if the native event has also been consumed.
Has the native event been consumed? Note that isCanceled()
will
still return true if the native event has also been canceled.
Is the current handler the first to preview this event?
Should only be called by HandlerManager
. In other words, do not use
or call.
handler | handler |
---|
Revives the event. Used when recycling event instances.