Class ShowContextMenuCallback.Action

java.lang.Object
com.teamdev.jxbrowser.callback.AsyncCallbackAction<com.teamdev.jxbrowser.internal.rpc.ShowContextMenu.Response>
com.teamdev.jxbrowser.browser.callback.ShowContextMenuCallback.Action
Enclosing interface:
ShowContextMenuCallback

public static final class ShowContextMenuCallback.Action extends AsyncCallbackAction<com.teamdev.jxbrowser.internal.rpc.ShowContextMenu.Response>
An action providing a response to the ShowContextMenuCallback.
  • Constructor Details

    • Action

      public Action(Consumer<com.teamdev.jxbrowser.internal.rpc.ShowContextMenu.Response> consumer)
  • Method Details

    • select

      public void select(ContextMenuItem item)
      Select the item.

      The browser will execute the corresponding functionality of the selected context menu item. The context menu state will be changed to closed.

    • close

      public void close()
      Close the context menu without selecting any context menu item.