public interface CefContextMenuParams
限定符和类型 | 接口和说明 |
---|---|
static class |
CefContextMenuParams.EditStateFlags
Supported context menu edit state bit flags.
(支持的上下文菜单编辑状态位标志。)
|
static class |
CefContextMenuParams.MediaStateFlags
Supported context menu media state bit flags.
(支持的上下文菜单媒体状态位标志。)
|
static class |
CefContextMenuParams.MediaType
Supported context menu media types.
(支持的上下文菜单媒体类型。)
|
static class |
CefContextMenuParams.TypeFlags
Supported context menu type flags.
(支持的上下文菜单类型标志。)
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
getDictionarySuggestions(java.util.Vector<java.lang.String> suggestions)
Returns true if suggestions exist, false otherwise.
(如果存在建议,则返回true,否则返回false。)
|
int |
getEditStateFlags()
Returns flags representing the actions supported by the editable node, if any, that the context menu was invoked on.
(返回标志,该标志表示调用了上下文菜单的可编辑节点(如果有)所支持的操作。)
|
java.lang.String |
getFrameCharset()
Returns the character encoding of the subframe that the context menu was invoked on.
(返回调用上下文菜单的子帧的字符编码。)
|
java.lang.String |
getFrameUrl()
Returns the URL of the subframe that the context menu was invoked on.
(返回调用上下文菜单的子帧的URL。)
|
java.lang.String |
getLinkUrl()
Returns the URL of the link, if any, that encloses the node that the context menu was invoked on.
(返回链接的URL(如果有),该URL包含调用上下文菜单的节点。)
|
int |
getMediaStateFlags()
Returns flags representing the actions supported by the media element, if any, that the context menu was invoked on.
(返回标志,表示受上下文菜单调用的媒体元素(如果有)所支持的操作。)
|
CefContextMenuParams.MediaType |
getMediaType()
Returns the type of context node that the context menu was invoked on.
(返回调用上下文菜单的上下文节点的类型。)
|
java.lang.String |
getMisspelledWord()
Returns the text of the misspelled word, if any, that the context menu was invoked on.
(返回拼写错误的单词的文本(如果有的话),将在上下文菜单上对其进行调用。)
|
java.lang.String |
getPageUrl()
Returns the URL of the top level page that the context menu was invoked on.
(返回调用上下文菜单的顶层页面的URL。)
|
java.lang.String |
getSelectionText()
Returns the text of the selection, if any, that the context menu was invoked on.
(返回调用上下文菜单的选择的文本(如果有)。)
|
java.lang.String |
getSourceUrl()
Returns the source URL, if any, for the element that the context menu was invoked on.
(返回调用了上下文菜单的元素的源URL(如果有)。)
|
int |
getTypeFlags()
Returns flags representing the type of node that the context menu was invoked on.
(返回表示在其上调用上下文菜单的节点类型的标志。)
|
java.lang.String |
getUnfilteredLinkUrl()
Returns the link URL, if any, to be used ONLY for "copy link address".
(返回链接URL(如果有),仅用于“复制链接地址”。)
|
int |
getXCoord()
Returns the X coordinate of the mouse where the context menu was invoked.
(返回调用上下文菜单的鼠标的X坐标。)
|
int |
getYCoord()
Returns the Y coordinate of the mouse where the context menu was invoked.
(返回调用上下文菜单的鼠标的Y坐标。)
|
boolean |
hasImageContents()
Returns true if the context menu was invoked on an image which has non-empty contents.
(如果在具有非空内容的图像上调用了上下文菜单,则返回true。)
|
boolean |
isEditable()
Returns true if the context menu was invoked on an editable node.
(如果在可编辑节点上调用了上下文菜单,则返回true。)
|
boolean |
isSpellCheckEnabled()
Returns true if the context menu was invoked on an editable node where spell-check is enabled.
(如果在启用了拼写检查的可编辑节点上调用了上下文菜单,则返回true。)
|
boolean getDictionarySuggestions(java.util.Vector<java.lang.String> suggestions)
int getEditStateFlags()
java.lang.String getFrameCharset()
java.lang.String getFrameUrl()
java.lang.String getLinkUrl()
int getMediaStateFlags()
CefContextMenuParams.MediaType getMediaType()
java.lang.String getMisspelledWord()
java.lang.String getPageUrl()
java.lang.String getSelectionText()
java.lang.String getSourceUrl()
int getTypeFlags()
java.lang.String getUnfilteredLinkUrl()
int getXCoord()
int getYCoord()
boolean hasImageContents()
boolean isEditable()
boolean isSpellCheckEnabled()