Package org.opencms.ui.shared.rpc
Interface I_CmsContextMenuServerRpc
- All Superinterfaces:
Serializable
,com.vaadin.shared.communication.ServerRpc
The context menu server RPC.
Adapted from ContextMenu by Peter Lehto / Vaadin Ltd.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called by the client side when context menu is closed.void
itemClicked
(String itemId, boolean menuClosed) Called by the client widget when context menu item is clicked.void
onContextMenuOpenRequested
(int x, int y, String connectorIdOfComponent) Called by the client side when context menu is about to be opened.
-
Method Details
-
contextMenuClosed
void contextMenuClosed()Called by the client side when context menu is closed. -
itemClicked
Called by the client widget when context menu item is clicked.- Parameters:
itemId
- id of the clicked itemmenuClosed
- will be true if menu was closed after the click
-
onContextMenuOpenRequested
Called by the client side when context menu is about to be opened.- Parameters:
x
- mouse x coordinatey
- mouse y coordinateconnectorIdOfComponent
- component connector id on which the click was made
-