code: private void replaceItems(Map<String, String> items) {
  
          String oldValue = m_selectBox.getFormValueAsString();
          //set value and option to the combo box.
          m_selectBox.setItems(items);
          if (items.containsKey(oldValue)) {
              m_selectBox.setFormValueAsString(oldValue);
          }
      }
docs: Replaces the select items with the given items.<p>
  
  @param items the select items