code: protected boolean onItemClicked() {
  
          if (isEnabled()) {
              m_overlay.closeSubMenus();
  
              if (hasSubMenu()) {
                  openSubMenu();
                  return false;
              } else {
                  if (m_rootComponent.isHideAutomatically()) {
                      closeContextMenu();
                      return true;
                  }
                  return false;
              }
          }
  
          return false;
      }
docs: Called when context menu item is clicked or is focused and enter is
  pressed.<p>
  
  @return <code>true</code> if context menu was closed after the click