Interface ShowContextMenuCallback.Params
- Enclosing interface:
- ShowContextMenuCallback
public static interface ShowContextMenuCallback.Params
The parameters of the
ShowContextMenuCallback.-
Method Summary
Modifier and TypeMethodDescriptiondefault Browserbrowser()Returns theBrowserinstance 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.default List<ContextMenuItem>Returns an immutable list of context menu items registered by installed extensions.frame()Returns theFrameinstance requested to display this context menu.default StringReturns the character encoding of the frame on which the menu is invoked.default StringframeUrl()Returns the URL of the frame that the context menu is invoked on.default booleanReturnstrueif the context menu is invoked on the main frame.default StringlinkText()Returns the text associated with the link.default StringlinkUrl()Returns the URL of the link that encloses the node the context menu is invoked on.default Pointlocation()Returns the location of the context menu in the browser.default PointReturns the location the context menu in the frame.default MediaTypeReturns the media type of the node the context menu is invoked on.default StringpageUrl()Returns the source URL of the top level page that the context menu is invoked on.default StringReturns the text of the selection that the context menu is invoked on.default SpellCheckMenuReturns the spell check sub menu.default StringsrcUrl()Returns the source URL of the HTML element that the context menu is invoked on.
-
Method Details
-
browser
Returns theBrowserinstance requested to display this context menu. -
frame
Returns theFrameinstance requested to display this context menu.It returns
Optional.empty()if the frame has been closed.- Since:
- 8.8.0
-
location
Returns the location of the context menu in the browser. -
locationInFrame
Returns the location the context menu in the frame.- Since:
- 8.8.0
-
linkUrl
Returns the URL of the link that encloses the node the context menu is invoked on. -
linkText
Returns the text associated with the link. -
srcUrl
Returns the source URL of the HTML element that the context menu is invoked on. -
pageUrl
Returns the source URL of the top level page that the context menu is invoked on. -
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()Returnstrueif the context menu is invoked on the main frame.- Since:
- 7.36
-
selectedText
Returns the text of the selection that the context menu is invoked on. -
frameCharset
Returns the character encoding of the frame on which the menu is invoked. -
mediaType
Returns the media type of the node the context menu is invoked on. -
extensionMenuItems
Returns an immutable list of context menu items registered by installed extensions.- Since:
- 8.3.0
-
spellCheckMenu
Returns the spell check sub menu. -
contentType
Returns a list of content types on top of which the context menu should be shown.- Since:
- 8.2.0
-