public class TabContextMenuEvent extends BrowserEvent<TabContextMenuHandler> implements Cancellable
GwtEvent.Type<H>jsObj| Constructor and Description |
|---|
TabContextMenuEvent(JavaScriptObject jsObj) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Call this method to cancel default right-click behavior
|
protected void |
dispatch(TabContextMenuHandler handler) |
static <S extends HasTabContextMenuHandlers & 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<TabContextMenuHandler> |
getAssociatedType() |
Tab |
getTab()
the tab object that recieved the context click event
|
TabSet |
getTabSet()
This tabset
|
static GwtEvent.Type<TabContextMenuHandler> |
getType()
Gets the type associated with this event.
|
boolean |
isCancelled() |
getX, getY, isAltKeyDown, isCtrlKeyDown, isLeftButtonDown, isRightButtonDownassertLive, getSource, isLive, kill, revivesetSource, toDebugString, toStringpublic TabContextMenuEvent(JavaScriptObject jsObj)
public static <S extends HasTabContextMenuHandlers & HasHandlers> void fire(S source, JavaScriptObject jsObj)
S - The event sourcesource - the source of the handlersjsObj - the native eventpublic static GwtEvent.Type<TabContextMenuHandler> getType()
protected void dispatch(TabContextMenuHandler handler)
dispatch in class GwtEvent<TabContextMenuHandler>public final GwtEvent.Type<TabContextMenuHandler> getAssociatedType()
getAssociatedType in class GwtEvent<TabContextMenuHandler>public void cancel()
cancel in interface Cancellablepublic boolean isCancelled()
isCancelled in interface Cancellablepublic TabSet getTabSet()
public Tab getTab()