public abstract class CefContextMenuHandlerAdapter extends Object implements CefContextMenuHandler
CefContextMenuHandler.EventFlags| 构造器和说明 |
|---|
CefContextMenuHandlerAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onBeforeContextMenu(CefBrowser browser,
CefContextMenuParams params,
CefMenuModel model)
Called before a context menu is displayed.
|
boolean |
onContextMenuCommand(CefBrowser browser,
CefContextMenuParams params,
int commandId,
int eventFlags)
Called to execute a command selected from the context menu.
|
void |
onContextMenuDismissed(CefBrowser browser)
Called when the context menu is dismissed irregardless of whether the menu
was empty or a command was selected.
|
public void onBeforeContextMenu(CefBrowser browser, CefContextMenuParams params, CefMenuModel model)
CefContextMenuHandleronBeforeContextMenu 在接口中 CefContextMenuHandlerbrowser - The corresponding browser.params - provides information about the context menu state.model - can be cleared to show no context menu or modified
to show a custom menu.public boolean onContextMenuCommand(CefBrowser browser, CefContextMenuParams params, int commandId, int eventFlags)
CefContextMenuHandleronContextMenuCommand 在接口中 CefContextMenuHandlerbrowser - The corresponding browser.params - Will have the same values as what was passed to onBeforeContextMenu().commandId - The id of the command.eventFlags - A combination of event flags defined in EventFlagspublic void onContextMenuDismissed(CefBrowser browser)
CefContextMenuHandleronContextMenuDismissed 在接口中 CefContextMenuHandlerbrowser - The corresponding browser.Copyright © 2017. All rights reserved.