return getComponentFactory().createComboBox();
}
protected Binding doBind(JComponent control, FormModel formModel, String formPropertyPath, Map context) {
Assert.isTrue(control instanceof JComboBox, formPropertyPath);
ComboBoxBinding binding = new ComboBoxBinding((JComboBox)control, formModel, formPropertyPath) {
protected ValueModel getValueModel() {
return new PetTypeAdapter(super.getValueModel(), petTypes);
}
};
binding.setSelectableItems(petTypes.keySet());
return binding;
}