Interface ShowContextMenuCallback.Params

Enclosing interface:
ShowContextMenuCallback

public static interface ShowContextMenuCallback.Params
The parameters of the ShowContextMenuCallback.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Browser
    Returns the Browser instance requested to display this context menu.
    Returns an immutable list of the custom context menu items.
    default String
    Returns the character encoding of the frame on which the menu is invoked.
    default String
    Returns the URL of the frame that the context menu is invoked on.
    default boolean
    Returns true if the context menu is invoked on the main frame.
    default String
    Returns the text associated with the link.
    default String
    Returns the URL of the link that encloses the node the context menu is invoked on.
    default Point
    Returns the context menu location.
    default MediaType
    Returns the media type of the node the context menu is invoked on.
    default String
    Returns the source URL of the top level page that the context menu is invoked on.
    default String
    Returns the text of the selection that the context menu is invoked on.
    Returns the spell check sub menu.
    default String
    Returns the source URL of the HTML element that the context menu is invoked on.
  • Method Details

    • browser

      default Browser browser()
      Returns the Browser instance requested to display this context menu.
    • location

      default Point location()
      Returns the context menu location. This location is related to the frame the context menu is invoked on.
    • linkUrl

      default String linkUrl()
      Returns the URL of the link that encloses the node the context menu is invoked on.
    • linkText

      default String linkText()
      Returns the text associated with the link.
    • srcUrl

      default String srcUrl()
      Returns the source URL of the HTML element that the context menu is invoked on.
    • pageUrl

      default String pageUrl()
      Returns the source URL of the top level page that the context menu is invoked on.
    • frameUrl

      default String frameUrl()
      Returns the URL of the frame that the context menu is invoked on.

      Use the isMainFrame() method to check if the context menu is invoked on the main frame.

    • isMainFrame

      default boolean isMainFrame()
      Returns true if the context menu is invoked on the main frame.
      Since:
      7.36
    • selectedText

      default String selectedText()
      Returns the text of the selection that the context menu is invoked on.
    • frameCharset

      default String frameCharset()
      Returns the character encoding of the frame on which the menu is invoked.
    • mediaType

      default MediaType mediaType()
      Returns the media type of the node the context menu is invoked on.
    • customContextMenuItems

      default List<ContextMenuItem> customContextMenuItems()
      Returns an immutable list of the custom context menu items.
    • spellCheckMenu

      default SpellCheckMenu spellCheckMenu()
      Returns the spell check sub menu.