public abstract class CefContextMenuHandlerAdapter extends java.lang.Object implements CefContextMenuHandler
| Constructor and Description |
|---|
CefContextMenuHandlerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onBeforeContextMenu(CefBrowser browser,
CefFrame frame,
CefContextMenuParams params,
CefMenuModel model)
Called before a context menu is displayed.
|
boolean |
onContextMenuCommand(CefBrowser browser,
CefFrame frame,
CefContextMenuParams params,
int commandId,
int eventFlags)
Called to execute a command selected from the context menu.
|
void |
onContextMenuDismissed(CefBrowser browser,
CefFrame frame)
Called when the context menu is dismissed irregardless of whether the menu
was empty or a command was selected.
|
public void onBeforeContextMenu(CefBrowser browser, CefFrame frame, CefContextMenuParams params, CefMenuModel model)
CefContextMenuHandleronBeforeContextMenu in interface CefContextMenuHandlerbrowser - The browser generating the event.frame - The frame generating the event. Instance only valid within the scope
of this method.params - Provides information about the context menu state. Instance
only valid within the scope of this method.model - Can be cleared to show no context menu or modified
to show a custom menu. Instance only valid within the scope of this
method.public boolean onContextMenuCommand(CefBrowser browser, CefFrame frame, CefContextMenuParams params, int commandId, int eventFlags)
CefContextMenuHandleronContextMenuCommand in interface CefContextMenuHandlerbrowser - The browser generating the event.frame - The frame generating the event. Instance only valid within the scope
of this method.params - Will have the same values that were passed to onBeforeContextMenu().
Instance only valid within the scope of this method.commandId - The id of the command.eventFlags - A combination of event flags defined in EventFlagspublic void onContextMenuDismissed(CefBrowser browser, CefFrame frame)
CefContextMenuHandleronContextMenuDismissed in interface CefContextMenuHandlerbrowser - The browser generating the event.frame - The corresponding frame. Instance only valid within the scope
of this method.