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.
|
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()
CancellableEventisCancelled in interface CancellableEventpublic void setCancelled(boolean cancelled)
CancellableEventsetCancelled in interface CancellableEventcancelled - true to cancelCopyright © 2012. All Rights Reserved.