public static final class ShowContextMenuCallback.Action extends AsyncCallbackAction<com.teamdev.jxbrowser.internal.rpc.ShowContextMenu.Response>
ShowContextMenuCallback
.Constructor and Description |
---|
Action(java.util.function.Consumer<com.teamdev.jxbrowser.internal.rpc.ShowContextMenu.Response> consumer) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Notifies the browser that the context menu should be closed without selecting any context
menu item.
|
void |
select(ContextMenuItem item)
Notifies the browser the
item should be selected. |
isClosed
public Action(java.util.function.Consumer<com.teamdev.jxbrowser.internal.rpc.ShowContextMenu.Response> consumer)
public void select(ContextMenuItem item)
item
should be selected. The browser will execute the
corresponding functionality of the selected context menu item. The context menu state
will be changed to closed.public void close()