public class BeforeShowContextMenuEvent extends GwtEvent<BeforeShowContextMenuEvent.BeforeShowContextMenuHandler> implements CancellableEvent
Modifier and Type | Class and Description |
---|---|
static interface |
BeforeShowContextMenuEvent.BeforeShowContextMenuHandler
Handler for
BeforeShowContextMenuEvent events. |
static interface |
BeforeShowContextMenuEvent.HasBeforeShowContextMenuHandler
A widget that implements this interface is a public source of
BeforeShowContextMenuEvent events. |
GwtEvent.Type<H>
Constructor and Description |
---|
BeforeShowContextMenuEvent(Menu menu) |
Modifier and Type | Method and Description |
---|---|
GwtEvent.Type<BeforeShowContextMenuEvent.BeforeShowContextMenuHandler> |
getAssociatedType() |
Menu |
getMenu()
Returns the context menu.
|
Component |
getSource() |
static GwtEvent.Type<BeforeShowContextMenuEvent.BeforeShowContextMenuHandler> |
getType()
Gets the type associated with this event.
|
boolean |
isCancelled()
Returns true if the event is cancelled.
|
void |
setCancelled(boolean cancelled)
True to cancel the event.
|
toDebugString, toString
public BeforeShowContextMenuEvent(Menu menu)
public static GwtEvent.Type<BeforeShowContextMenuEvent.BeforeShowContextMenuHandler> getType()
public GwtEvent.Type<BeforeShowContextMenuEvent.BeforeShowContextMenuHandler> getAssociatedType()
getAssociatedType
in class GwtEvent<BeforeShowContextMenuEvent.BeforeShowContextMenuHandler>
public Menu getMenu()
public Component getSource()
getSource
in class GwtEvent<BeforeShowContextMenuEvent.BeforeShowContextMenuHandler>
public boolean isCancelled()
CancellableEvent
isCancelled
in interface CancellableEvent
public void setCancelled(boolean cancelled)
CancellableEvent
setCancelled
in interface CancellableEvent
cancelled
- true to cancelCopyright © 2015. All rights reserved.