Interface I_CmsContextMenuClientRpc

  • All Superinterfaces:
    com.vaadin.shared.communication.ClientRpc, java.io.Serializable

    public interface I_CmsContextMenuClientRpc
    extends com.vaadin.shared.communication.ClientRpc
    Server to client RPC communication.

    Adapted from ContextMenu by Peter Lehto / Vaadin Ltd.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void 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​(java.lang.String connectorId)
      Sends request to client widget to open context menu relative to component identified by given connectorId.
    • Method Detail

      • hide

        void hide()
        Sends request to client widget to close context menu.

      • showContextMenu

        void showContextMenu​(int x,
                             int y)
        Sends request to client widget to open context menu to given position.

        Parameters:
        x - the client x position
        y - the client y position
      • showContextMenuRelativeTo

        void showContextMenuRelativeTo​(java.lang.String connectorId)
        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