code: public void updateContentList(List<CmsCategoryBean> categoriesBeans, List<String> selectedCategories) {
  
          clearList();
          if (m_categories == null) {
              m_categories = new HashMap<String, CmsCategoryBean>();
          }
          if ((categoriesBeans != null) && !categoriesBeans.isEmpty()) {
              for (CmsCategoryBean categoryBean : categoriesBeans) {
                  m_categories.put(categoryBean.getPath(), categoryBean);
                  // set the list item widget
                  CmsDataValue dataValue = new CmsDataValue(
                      600,
                      3,
                      CmsCategoryBean.SMALL_ICON_CLASSES,
                      categoryBean.getTitle(),
                      CmsStringUtil.isNotEmptyOrWhitespaceOnly(categoryBean.getDescription())
                      ? categoryBean.getDescription()
                      : categoryBean.getPath());
                  // the checkbox
                  CmsCheckBox checkBox = new CmsCheckBox();
                  if ((selectedCategories != null) && selectedCategories.contains(categoryBean.getPath())) {
                      checkBox.setChecked(true);
                  }
                  SelectionHandler selectionHandler = new SelectionHandler(categoryBean.getPath(), checkBox);
                  checkBox.addClickHandler(selectionHandler);
                  dataValue.addClickHandler(selectionHandler);
                  dataValue.setUnselectable();
                  // set the category list item and add to list
                  CmsTreeItem listItem = new CmsTreeItem(false, checkBox, dataValue);
                  listItem.setSmallView(true);
                  listItem.setId(categoryBean.getPath());
                  addWidgetToList(listItem);
              }
          } else {
              showIsEmptyLabel();
          }
      }
docs: Updates the content of the categories list.<p>
  
  @param categoriesBeans the updates list of categories tree item beans
  @param selectedCategories the categories to select in the list by update