Package org.springframework.richclient.list

Examples of org.springframework.richclient.list.BeanPropertyValueListRenderer


        }

        context.put(SELECTABLE_ITEMS_HOLDER_KEY, selectableItemsHolder);

        if( renderedProperty != null ) {
            context.put(RENDERER_KEY, new BeanPropertyValueListRenderer(renderedProperty));
            context.put(COMPARATOR_KEY, new PropertyComparator(renderedProperty, true, true));
        }

        return context;
    }
View Full Code Here


                renderedItemProperty);
    }

    public Binding createBoundComboBox(String formProperty, Object selectableItems, String renderedProperty) {
        Map context = createContext(ComboBoxBinder.SELECTABLE_ITEMS_KEY, selectableItems);
        context.put(ComboBoxBinder.RENDERER_KEY, new BeanPropertyValueListRenderer(renderedProperty));
        context.put(ComboBoxBinder.EDITOR_KEY, new BeanPropertyEditorClosure(renderedProperty));
        context.put(ComboBoxBinder.COMPARATOR_KEY, new PropertyComparator(renderedProperty, true, true));
        return createBinding(JComboBox.class, formProperty, context);
    }
View Full Code Here

        if (forceSelectMode != null) {
            context.put(ListBinder.SELECTION_MODE_KEY, forceSelectMode);
        }
        context.put(ListBinder.SELECTABLE_ITEMS_KEY, selectableItems);
        if (renderedProperty != null) {
            context.put(ListBinder.RENDERER_KEY, new BeanPropertyValueListRenderer(renderedProperty));
            context.put(ListBinder.COMPARATOR_KEY, new PropertyComparator(renderedProperty, true, true));
        }
        return createBinding(JList.class, selectionFormProperty, context);
    }
View Full Code Here

        selectableItems = Arrays.asList(new Object[] {new Item("A"), new Item("B"), new Item("C"), new Item("D"),
                new Item("E")});

        context.put(ListBinder.SELECTABLE_ITEMS_KEY, selectableItems);
        context.put(ListBinder.RENDERER_KEY, new BeanPropertyValueListRenderer("name"));
        context.put(ListBinder.COMPARATOR_KEY, new PropertyComparator("name", true, false));

        return "listProperty";
    }
View Full Code Here

TOP

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

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.