code: public void hideAll() {
  
          CmsContextMenu currentMenu = this;
          int i = 0;
          while ((currentMenu != null) && (i < 10)) {
              currentMenu.hide();
              currentMenu = currentMenu.getParentMenu();
              i += 1;
          }
      }
docs: Hides this menu and all its parent menus.<p>