Interface ShowContextMenuCallback.Params
- Enclosing interface:
- ShowContextMenuCallback
public static interface ShowContextMenuCallback.Params
The parameters of the
ShowContextMenuCallback
.-
Method Summary
Modifier and TypeMethodDescriptiondefault Browser
browser()
Returns theBrowser
instance requested to display this context menu.default List<ContextMenuItem>
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
frameUrl()
Returns the URL of the frame that the context menu is invoked on.default boolean
Returnstrue
if the context menu is invoked on the main frame.default String
linkText()
Returns the text associated with the link.default String
linkUrl()
Returns the URL of the link that encloses the node the context menu is invoked on.default Point
location()
Returns the context menu location.default MediaType
Returns the media type of the node the context menu is invoked on.default String
pageUrl()
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.default SpellCheckMenu
Returns the spell check sub menu.default String
srcUrl()
Returns the source URL of the HTML element that the context menu is invoked on.
-
Method Details
-
browser
Returns theBrowser
instance requested to display this context menu. -
location
Returns the context menu location. This location is related to the frame the context menu is invoked on. -
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()Returnstrue
if 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. -
customContextMenuItems
Returns an immutable list of the custom context menu items. -
spellCheckMenu
Returns the spell check sub menu.
-