code: public void toogleDetailState(String itemDetailId) {
  
          CmsListItemDetails lid = m_itemDetails.getObject(itemDetailId);
          lid.setVisible(!lid.isVisible());
      }
docs: Toggles the given item detail state from visible to hidden or
  from hidden to visible.<p>
  
  @param itemDetailId the item detail id