View Javadoc
1   package org.vaadin.peter.contextmenu.client;
2   
3   import com.vaadin.shared.communication.ServerRpc;
4   
5   public interface ContextMenuServerRpc extends ServerRpc {
6   
7   	/**
8   	 * Called by the client widget when context menu item is clicked
9   	 * 
10  	 * @param itemId
11  	 *            id of the clicked item
12  	 * 
13  	 * @param menuClosed
14  	 *            will be true if menu was closed after the click
15  	 */
16  	public void itemClicked(String itemId, boolean menuClosed);
17  
18  	/**
19  	 * Called by the client side when context menu is about to be opened.
20  	 * 
21  	 * @param x
22  	 *            mouse x coordinate
23  	 * @param y
24  	 *            mouse y coordinate
25  	 * @param connectorIdOfComponent
26  	 *            component connector id on which the click was made.
27  	 */
28  	public void onContextMenuOpenRequested(int x, int y,
29  			String connectorIdOfComponent);
30  
31      /**
32       * Called by the client side when context menu is closed.
33       */
34      public void contextMenuClosed();
35  }