org.opencms.ui.shared.rpc.I_CmsContextMenuServerRpc Maven / Gradle / Ivy
Show all versions of opencms-test Show documentation
package org.opencms.ui.shared.rpc;
import com.vaadin.shared.communication.ServerRpc;
/**
* The context menu server RPC.
*
* Adapted from ContextMenu by Peter Lehto / Vaadin Ltd.
*/
public interface I_CmsContextMenuServerRpc extends ServerRpc {
/**
* Called by the client side when context menu is closed.
*/
public void contextMenuClosed();
/**
* Called by the client widget when context menu item is clicked.
*
* @param itemId id of the clicked item
* @param menuClosed will be true if menu was closed after the click
*/
public void itemClicked(String itemId, boolean menuClosed);
/**
* Called by the client side when context menu is about to be opened.
*
* @param x mouse x coordinate
* @param y mouse y coordinate
* @param connectorIdOfComponent component connector id on which the click was made
*/
public void onContextMenuOpenRequested(int x, int y, String connectorIdOfComponent);
}