code: public void addSelectableModule(final String moduleName) {
  
          boolean enabled = true; /* OpenCms.getModuleManager().hasModule(moduleName); */
          CheckBox moduleCheckBox = new CheckBox();
          String iconUri = CmsWorkplace.getResourceUri("tools/modules/buttons/modules.png");
          CmsResourceInfo info = new CmsResourceInfo(moduleName, "", iconUri);
          HorizontalLayout line = new HorizontalLayout();
          line.setWidth("100%");
          line.addComponent(moduleCheckBox);
          info.setWidth("100%");
          line.addComponent(info);
          line.setComponentAlignment(moduleCheckBox, Alignment.MIDDLE_CENTER);
          line.setExpandRatio(info, 1.0f);
          moduleCheckBox.setEnabled(true);
          moduleCheckBox.setValue(Boolean.valueOf(enabled)); // If enabled, then checked by default
          m_moduleCheckboxes.put(moduleName, moduleCheckBox);
          m_moduleSelectionContainer.addComponent(line, m_moduleSelectionContainer.getComponentCount() - 1);
          setTab(m_dialogTab);
      }
docs: Adds a check box and info widget for a module which should be selectable for check-in.<p>
  
  @param moduleName the name of the module