public class RecordContextClickEvent extends BrowserEvent<RecordContextClickHandler> implements Cancellable
GwtEvent.Type<H>
jsObj
Constructor and Description |
---|
RecordContextClickEvent(JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Call this method to suppress the native browser context menu.
|
protected void |
dispatch(RecordContextClickHandler handler) |
static <S extends HasRecordContextClickHandlers & 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<RecordContextClickHandler> |
getAssociatedType() |
Record |
getRecord()
the record that was right-clicked on
|
Canvas |
getTile()
the tile that was clicked on
|
static GwtEvent.Type<RecordContextClickHandler> |
getType()
Gets the type associated with this event.
|
TileGrid |
getViewer()
the TileGrid itself
|
boolean |
isCancelled() |
getX, getY, isAltKeyDown, isCtrlKeyDown, isLeftButtonDown, isRightButtonDown
assertLive, getSource, isLive, kill, revive
setSource, toDebugString, toString
public RecordContextClickEvent(JavaScriptObject jsObj)
public static <S extends HasRecordContextClickHandlers & HasHandlers> void fire(S source, JavaScriptObject jsObj)
S
- The event sourcesource
- the source of the handlersjsObj
- the native eventpublic static GwtEvent.Type<RecordContextClickHandler> getType()
protected void dispatch(RecordContextClickHandler handler)
dispatch
in class GwtEvent<RecordContextClickHandler>
public final GwtEvent.Type<RecordContextClickHandler> getAssociatedType()
getAssociatedType
in class GwtEvent<RecordContextClickHandler>
public void cancel()
cancel
in interface Cancellable
public boolean isCancelled()
isCancelled
in interface Cancellable
public TileGrid getViewer()
public Canvas getTile()
public Record getRecord()