public class ShowContextMenuEvent extends AbstractSmartEvent<ShowContextMenuHandler> implements Cancellable
GwtEvent.Type<H>jsObj| Constructor and Description |
|---|
ShowContextMenuEvent(JavaScriptObject jsObj) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
false == don't show native context menu, true == show native context menu
|
protected void |
dispatch(ShowContextMenuHandler handler) |
static <S extends HasShowContextMenuHandlers & 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<ShowContextMenuHandler> |
getAssociatedType() |
static GwtEvent.Type<ShowContextMenuHandler> |
getType()
Gets the type associated with this event.
|
boolean |
isCancelled() |
assertLive, getSource, isLive, kill, revivesetSource, toDebugString, toStringpublic ShowContextMenuEvent(JavaScriptObject jsObj)
public static <S extends HasShowContextMenuHandlers & HasHandlers> void fire(S source, JavaScriptObject jsObj)
S - The event sourcesource - the source of the handlersjsObj - the native eventpublic static GwtEvent.Type<ShowContextMenuHandler> getType()
protected void dispatch(ShowContextMenuHandler handler)
dispatch in class GwtEvent<ShowContextMenuHandler>public final GwtEvent.Type<ShowContextMenuHandler> getAssociatedType()
getAssociatedType in class GwtEvent<ShowContextMenuHandler>public void cancel()
cancel in interface Cancellablepublic boolean isCancelled()
isCancelled in interface Cancellable