code: public void fillContent(List<CmsResourceTypeBean> typeInfos, List<String> selectedTypes) {
  
          if (m_types == null) {
              m_types = new HashMap<String, CmsResourceTypeBean>();
          }
          clearList();
          m_types.clear();
          for (CmsResourceTypeBean typeBean : typeInfos) {
              m_types.put(typeBean.getType(), typeBean);
              CmsListItemWidget listItemWidget;
              listItemWidget = new CmsListItemWidget(typeBean);
              listItemWidget.setUnselectable();
              CmsCheckBox checkBox = new CmsCheckBox();
              CmsListItem listItem = new CmsListItem(checkBox, listItemWidget);
              if (typeBean.isDeactivated()) {
                  checkBox.disable("");
                  listItem.addStyleName(
                      org.opencms.gwt.client.ui.css.I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().expired());
              } else {
                  SelectionHandler selectionHandler = new SelectionHandler(typeBean.getType(), checkBox);
                  checkBox.addClickHandler(selectionHandler);
                  listItemWidget.addClickHandler(selectionHandler);
                  if ((selectedTypes != null) && selectedTypes.contains(typeBean.getType())) {
                      checkBox.setChecked(true);
                  }
                  listItemWidget.addButton(createSelectButton(selectionHandler));
  
                  if (typeBean.isCreatableType() && (m_dndHandler != null)) {
                      listItem.initMoveHandle(m_dndHandler, true);
                      listItem.getMoveHandle().setTitle(Messages.get().key(Messages.GUI_TAB_TYPES_CREATE_NEW_0));
                  }
              }
              listItem.setId(typeBean.getType());
  
              if (typeBean.getVisibility() == TypeVisibility.showOptional) {
                  listItem.addStyleName(I_CmsLayoutBundle.INSTANCE.galleryDialogCss().shouldOnlyShowInFullTypeList());
              }
              addWidgetToList(listItem);
          }
          updateTypeModeToggle();
      }
docs: Fill the content of the types tab panel.<p>
  
  @param typeInfos the type info beans
  @param selectedTypes the list of types to select