Interface I_CmsContextMenuServerRpc

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

    public interface I_CmsContextMenuServerRpc
    extends com.vaadin.shared.communication.ServerRpc
    The context menu server RPC.

    Adapted from ContextMenu by Peter Lehto / Vaadin Ltd.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void contextMenuClosed()
      Called by the client side when context menu is closed.
      void itemClicked​(java.lang.String itemId, boolean menuClosed)
      Called by the client widget when context menu item is clicked.
      void onContextMenuOpenRequested​(int x, int y, java.lang.String connectorIdOfComponent)
      Called by the client side when context menu is about to be opened.
    • Method Detail

      • contextMenuClosed

        void contextMenuClosed()
        Called by the client side when context menu is closed.

      • itemClicked

        void itemClicked​(java.lang.String itemId,
                         boolean menuClosed)
        Called by the client widget when context menu item is clicked.

        Parameters:
        itemId - id of the clicked item
        menuClosed - will be true if menu was closed after the click
      • onContextMenuOpenRequested

        void onContextMenuOpenRequested​(int x,
                                        int y,
                                        java.lang.String connectorIdOfComponent)
        Called by the client side when context menu is about to be opened.

        Parameters:
        x - mouse x coordinate
        y - mouse y coordinate
        connectorIdOfComponent - component connector id on which the click was made