code: private void setupVersionComboBox() {
  
          //Setup beans
          List<ComboBoxVersionsBean> beans = new ArrayList<ComboBoxVersionsBean>();
  
          //Disabled
          beans.add(new ComboBoxVersionsBean(CmsFileHistoryApp.NUMBER_VERSIONS_DISABLED));
  
          //1-10
          for (int i = 1; i <= 10; i++) {
              beans.add(new ComboBoxVersionsBean(i));
          }
  
          //15-50
          for (int i = 15; i <= 50; i += 5) {
              beans.add(new ComboBoxVersionsBean(i));
          }
  
          //Unlimited
          beans.add(new ComboBoxVersionsBean(CmsFileHistoryApp.NUMBER_VERSIONS_UNLIMITED));
  
          BeanItemContainer<ComboBoxVersionsBean> objects = new BeanItemContainer<ComboBoxVersionsBean>(
              ComboBoxVersionsBean.class,
              beans);
          m_numberVersions.setContainerDataSource(objects);
          m_numberVersions.setItemCaptionPropertyId("displayValue");
  
          m_numberVersions.setNullSelectionAllowed(false);
          m_numberVersions.setTextInputAllowed(false);
          m_numberVersions.setPageLength(beans.size());
  
          int numberHistoryVersions = OpenCms.getSystemInfo().getHistoryVersions();
  
          m_numberVersions.setValue(beans.get(beans.indexOf(new ComboBoxVersionsBean(numberHistoryVersions))));
      }
docs: Fills the combo box to choose the number of versions which shouls be stored.<p>