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.
|
toDebugString, toString
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()
CancellableEvent
isCancelled
in interface CancellableEvent
public void setCancelled(boolean cancelled)
CancellableEvent
setCancelled
in interface CancellableEvent
cancelled
- true to cancelCopyright © 2015. All rights reserved.