Class CefriumContextMenu
java.lang.Object
com.cefrium.CefriumContextMenu
A context menu the page asks for (a long press or a right click on a link
or an image), as
CefriumChromeClient.onContextMenu(CefriumBrowser, CefriumContextMenu) sees it. Show
the items, then run the one chosen with CefriumContextMenu.Item.execute() or close the
menu with cancel(); the first of those counts. Any thread.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classOne entry of the menu.static enumWhat kind of media the menu is for. -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Closes the menu without running an entry.getItems()The entries, in order.The link under the touch; empty when none.The page the menu is on.The selected text; empty when none.The image or media under the touch (src); empty when none.intgetX()Where the menu was asked for, in the unitsCefriumBrowser.sendMouseClick(int, int, int)takes.intgetY()booleanWhether the menu is for an editable field.
-
Method Details
-
getItems
The entries, in order. Unmodifiable. -
getPageUrl
The page the menu is on. -
getLinkUrl
The link under the touch; empty when none. -
getSourceUrl
The image or media under the touch (src); empty when none. -
getSelectionText
The selected text; empty when none. -
isEditable
public boolean isEditable()Whether the menu is for an editable field. -
getMediaType
-
getX
public int getX()Where the menu was asked for, in the unitsCefriumBrowser.sendMouseClick(int, int, int)takes. -
getY
public int getY() -
cancel
public void cancel()Closes the menu without running an entry.
-