Package org.springframework.richclient.form.binding.swing

Examples of org.springframework.richclient.form.binding.swing.ComboBoxBinding


        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;
    }
View Full Code Here

TOP

Related Classes of org.springframework.richclient.form.binding.swing.ComboBoxBinding

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.