Package org.opencms.ui.shared.rpc
Interface I_CmsContextMenuClientRpc
- All Superinterfaces:
com.vaadin.shared.communication.ClientRpc
,Serializable
Server to client RPC communication.
Adapted from ContextMenu by Peter Lehto / Vaadin Ltd.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
hide()
Sends request to client widget to close context menu.void
showContextMenu
(int x, int y) Sends request to client widget to open context menu to given position.void
showContextMenuRelativeTo
(String connectorId) Sends request to client widget to open context menu relative to component identified by given connectorId.
-
Method Details
-
hide
void hide()Sends request to client widget to close context menu. -
showContextMenu
Sends request to client widget to open context menu to given position.- Parameters:
x
- the client x positiony
- the client y position
-
showContextMenuRelativeTo
Sends request to client widget to open context menu relative to component identified by given connectorId. (Method is on purpose with different name from showContextMenu as overloading does not work properly in javascript environment.)- Parameters:
connectorId
- the connector id
-