code: public void addContextMenuComponentListener(
          CmsContextMenu.ContextMenuOpenedListener.ComponentListener contextMenuComponentListener) {
  
          addListener(
              ContextMenuOpenedOnComponentEvent.class,
              contextMenuComponentListener,
              ContextMenuOpenedListener.ComponentListener.MENU_OPENED_FROM_COMPONENT);
      }
docs: Adds listener that will be invoked when context menu is opened from the
  component to which it's assigned to.<p>
  
  @param contextMenuComponentListener the component listener