public class ShowContextMenuEvent extends GwtEvent<ShowContextMenuEvent.ShowContextMenuHandler> implements CancellableEvent
| Modifier and Type | Class and Description |
|---|---|
static interface |
ShowContextMenuEvent.HasShowContextMenuHandler
A widget that implements this interface is a public source of
ShowContextMenuEvent events. |
static interface |
ShowContextMenuEvent.ShowContextMenuHandler
Handler for
ShowContextMenuEvent events. |
GwtEvent.Type<H>| Constructor and Description |
|---|
ShowContextMenuEvent(Menu menu) |
| Modifier and Type | Method and Description |
|---|---|
GwtEvent.Type<ShowContextMenuEvent.ShowContextMenuHandler> |
getAssociatedType() |
Menu |
getMenu()
Returns the context menu.
|
Component |
getSource() |
static GwtEvent.Type<ShowContextMenuEvent.ShowContextMenuHandler> |
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 ShowContextMenuEvent(Menu menu)
public static GwtEvent.Type<ShowContextMenuEvent.ShowContextMenuHandler> getType()
public GwtEvent.Type<ShowContextMenuEvent.ShowContextMenuHandler> getAssociatedType()
getAssociatedType in class GwtEvent<ShowContextMenuEvent.ShowContextMenuHandler>public Menu getMenu()
public Component getSource()
getSource in class GwtEvent<ShowContextMenuEvent.ShowContextMenuHandler>public boolean isCancelled()
CancellableEventisCancelled in interface CancellableEventpublic void setCancelled(boolean cancelled)
CancellableEventsetCancelled in interface CancellableEventcancelled - true to cancelCopyright © 2012. All Rights Reserved.