protected void refreshInput(Map<TYPE, String> optionsValues, TYPE selectedValue) { input.clear(); for (TYPE key : optionsValues.keySet()) { Radio radio; SafeHtml text = getOptionLabel(optionsValues.get(key)); if (field.getInline()) { radio = new InlineRadio(field.getId(), text); } else { radio = new Radio(field.getId(), text); } radio.setFormValue(key.toString()); radio.setEnabled(!field.getReadOnly()); input.add(radio); } if (optionsValues.containsKey(selectedValue)) { input.setValue(selectedValue, true); } }