001 002package org.opencms.ui.shared.rpc; 003 004import com.vaadin.shared.communication.ClientRpc; 005 006/** 007 * Server to client RPC communication.<p> 008 * 009 * Adapted from ContextMenu by Peter Lehto / Vaadin Ltd.<p> 010 * 011 */ 012public interface I_CmsContextMenuClientRpc extends ClientRpc { 013 014 /** 015 * Sends request to client widget to close context menu.<p> 016 */ 017 public void hide(); 018 019 /** 020 * Sends request to client widget to open context menu to given position.<p> 021 * 022 * @param x the client x position 023 * @param y the client y position 024 */ 025 public void showContextMenu(int x, int y); 026 027 /** 028 * Sends request to client widget to open context menu relative to component 029 * identified by given connectorId. (Method is on purpose with different 030 * name from showContextMenu as overloading does not work properly in 031 * javascript environment.)<p> 032 * 033 * @param connectorId the connector id 034 */ 035 public void showContextMenuRelativeTo(String connectorId); 036 037}