Package org.springframework.richclient.list

Examples of org.springframework.richclient.list.LabeledEnumListRenderer


    }
    CompoundComparator comparator = new CompoundComparator();
    comparator.addComparator(LabeledEnum.LABEL_ORDER);
    comparator.addComparator(new ComparableComparator());
    comboBox.setModel(new ComboBoxListModel(new ArrayList(enumValues), comparator));
    comboBox.setRenderer(new LabeledEnumListRenderer(messageSource));
    comboBox.setEditor(new LabeledEnumComboBoxEditor(messageSource, comboBox.getEditor()));
  }
View Full Code Here


    public LabeledEnumComboBoxBinding(JComboBox comboBox, FormModel formModel, String formPropertyPath) {
        super(comboBox, formModel, formPropertyPath);
    }

    protected void doBindControl(ListModel bindingModel) {
        setRenderer(new LabeledEnumListRenderer(getMessageSource()));
        setEditor(new LabeledEnumComboBoxEditor(getMessageSource(), getEditor()));
        CompoundComparator comparator = new CompoundComparator();
        comparator.addComparator(LabeledEnum.LABEL_ORDER);
        comparator.addComparator(new ComparableComparator());
        setComparator(comparator);
View Full Code Here

TOP

Related Classes of org.springframework.richclient.list.LabeledEnumListRenderer

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.