public abstract class CefContextMenuHandlerAdapter extends java.lang.Object implements CefContextMenuHandler
CefContextMenuHandler.EventFlags| 构造器和说明 | 
|---|
CefContextMenuHandlerAdapter()  |  
          
| 限定符和类型 | 方法和说明 | 
|---|---|
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)
CefContextMenuHandler
          onBeforeContextMenu 在接口中 
            CefContextMenuHandler
           browser - The corresponding browser.
             - 相应的浏览器。
           frame - The corresponding frame.
             - 相应的框架。
           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, CefFrame frame, CefContextMenuParams params, int commandId, int eventFlags)
CefContextMenuHandler
          onContextMenuCommand 在接口中 
            CefContextMenuHandler
           browser - The corresponding browser.
             - 相应的浏览器。
           frame - The corresponding frame.
             - 相应的框架。
           params - Will have the same values as what was passed to onBeforeContextMenu().
             - 将具有与传递给onBeforeContextMenu()的值相同的值。
           commandId - The id of the command.
             - 命令的id。
           eventFlags - A combination of event flags defined in EventFlags
             - EventFlags中定义的事件标志的组合
           public void onContextMenuDismissed(CefBrowser browser, CefFrame frame)
CefContextMenuHandler
          onContextMenuDismissed 在接口中 
            CefContextMenuHandler
           browser - The corresponding browser.
             - 相应的浏览器。
           frame - The corresponding frame.
             - 相应的框架。