public interface ShowContextMenuCallback extends BrowserAsyncCallback<ShowContextMenuCallback.Params,ShowContextMenuCallback.Action>
You can use this callback to display the standard Java popup menu and fill it with the menu
items that you can obtain by invoking the ShowContextMenuCallback.Params.customContextMenuItems()
method.
The ShowContextMenuCallback.Params
contains information about the web page that attempts to show the context
menu, the context menu location, the spellchecker result, etc.
Use the ShowContextMenuCallback.Action.select(com.teamdev.jxbrowser.menu.ContextMenuItem)
method to select a
context menu item and execute the action associated with this item.
Use the ShowContextMenuCallback.Action.close()
to close the context menu without selecting any item.
If the callback throws an exception, the ShowContextMenuCallback.Action.close()
method will be invoked.
Modifier and Type | Interface and Description |
---|---|
static class |
ShowContextMenuCallback.Action
An action providing a response to the
ShowContextMenuCallback . |
static interface |
ShowContextMenuCallback.Params
The parameters of the
ShowContextMenuCallback . |
on