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);
        }
    }
private void replaceItems ( Map < String , String > items ) { String oldValue = m_selectBox . getFormValueAsString ( ) ; m_selectBox . setItems ( items ) ; if ( items . containsKey ( oldValue ) ) { m_selectBox . setFormValueAsString ( oldValue ) ; } }
Replaces the select items with the given items.<p>

@param items the select items