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()
Close the context menu without selecting any context menu item.
|
void |
select(ContextMenuItem item)
Select the
item . |
isClosed
public Action(java.util.function.Consumer<com.teamdev.jxbrowser.internal.rpc.ShowContextMenu.Response> consumer)
public void select(ContextMenuItem item)
item
.
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()