public class BeforeShowContextMenuEvent extends <any> 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. |
Constructor and Description |
---|
BeforeShowContextMenuEvent(Menu menu) |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(BeforeShowContextMenuEvent.BeforeShowContextMenuHandler handler) |
<any> |
getAssociatedType() |
Menu |
getMenu()
Returns the context menu.
|
Component |
getSource() |
static <any> |
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 <any> getType()
public <any> getAssociatedType()
public Menu getMenu()
public Component getSource()
public boolean isCancelled()
CancellableEvent
isCancelled
in interface CancellableEvent
public void setCancelled(boolean cancelled)
CancellableEvent
setCancelled
in interface CancellableEvent
cancelled
- true to cancelprotected void dispatch(BeforeShowContextMenuEvent.BeforeShowContextMenuHandler handler)
Copyright © 2018. All rights reserved.