public static interface ShowContextMenuCallback.Params
ShowContextMenuCallback
.Modifier and Type | Method and Description |
---|---|
default Browser |
browser()
Returns the
Browser instance requested to display this context menu. |
default java.util.List<ContextMenuItem> |
customContextMenuItems()
Returns an immutable list of the custom context menu items.
|
default java.lang.String |
frameCharset()
Returns the character encoding of the frame on which the menu is invoked.
|
default java.lang.String |
frameUrl()
Returns the URL of the frame that the context menu is invoked on.
|
default boolean |
isMainFrame()
Returns
true if the context menu is invoked on the main frame. |
default java.lang.String |
linkText()
Returns the text associated with the link.
|
default java.lang.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 |
mediaType()
Returns the media type of the node the context menu is invoked on.
|
default java.lang.String |
pageUrl()
Returns the source URL of the top level page that the context menu is invoked on.
|
default java.lang.String |
selectedText()
Returns the text of the selection that the context menu is invoked on.
|
default SpellCheckMenu |
spellCheckMenu()
Returns the spell check sub menu.
|
default java.lang.String |
srcUrl()
Returns the source URL of the HTML element that the context menu is invoked on.
|
default Browser browser()
Browser
instance requested to display this context menu.default Point location()
default java.lang.String linkUrl()
default java.lang.String linkText()
default java.lang.String srcUrl()
default java.lang.String pageUrl()
default java.lang.String frameUrl()
Use the isMainFrame()
method to check if the context menu is invoked on the
main frame.
default boolean isMainFrame()
true
if the context menu is invoked on the main frame.default java.lang.String selectedText()
default java.lang.String frameCharset()
default MediaType mediaType()
default java.util.List<ContextMenuItem> customContextMenuItems()
default SpellCheckMenu spellCheckMenu()