public static class Event.NativePreviewEvent extends GwtEvent<Event.NativePreviewHandler> implements HasNativeEvent
Event.GwtEvent.Type<H>| Constructor and Description | 
|---|
| NativePreviewEvent() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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.Typeused to register this event, allowing anEventBusto 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. | 
assertLive, getSource, isLive, killsetSource, toDebugString, toStringpublic 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()
EventEvent.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()
HasNativeEventgetNativeEvent in interface HasNativeEventpublic 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)
GwtEventHandlerManager. In other words, do not use
 or call.dispatch in class GwtEvent<Event.NativePreviewHandler>handler - handlerEventBus.dispatchEvent(Event, Object)protected void revive()
GwtEventrevive in class GwtEvent<Event.NativePreviewHandler>