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.
    default List<com.teamdev.jxbrowser.menu.internal.rpc.ContextMenuContentType>
    Returns a list of content types on top of which the context menu should be shown.
    Returns an immutable list of context menu items registered by installed extensions.
    default Optional<Frame>
    Returns the Frame instance requested to display this context menu.
    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 location of the context menu in the browser.
    default Point
    Returns the location the context menu in the frame.
    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.
    • frame

      default Optional<Frame> frame()
      Returns the Frame instance requested to display this context menu.

      It returns Optional.empty() if the frame has been closed.

      Since:
      8.8.0
    • location

      default Point location()
      Returns the location of the context menu in the browser.
    • locationInFrame

      default Point locationInFrame()
      Returns the location the context menu in the frame.
      Since:
      8.8.0
    • 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.
    • extensionMenuItems

      default List<ContextMenuItem> extensionMenuItems()
      Returns an immutable list of context menu items registered by installed extensions.
      Since:
      8.3.0
    • spellCheckMenu

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

      default List<com.teamdev.jxbrowser.menu.internal.rpc.ContextMenuContentType> contentType()
      Returns a list of content types on top of which the context menu should be shown.
      Since:
      8.2.0