Package org.springframework.richclient.selection.binding.support

Examples of org.springframework.richclient.selection.binding.support.ValueModel2EventListBridge


        return selectField.getControl();
    }

    protected ApplicationDialog createSelectionDialog() {
        EventList eventList = createEventList(selectableItemsHolder);
        final ValueModel2EventListBridge itemRefresher = new ValueModel2EventListBridge(selectableItemsHolder,
                eventList, true);

        ListSelectionDialog selectionDialog = null;
        if (filtered) {
            FilterListSelectionDialog filterDialog = new FilterListSelectionDialog("", null, new FilterList(eventList));
            if (filterProperties == null) {
                filterDialog.setFilterator(new StringTextFilterator());
            } else {
                filterDialog.setFilterator(new BeanTextFilterator(filterProperties));
            }

            selectionDialog = filterDialog;
        } else {
            selectionDialog = new ListSelectionDialog("", null, eventList);
        }

        selectionDialog.setOnAboutToShow(new Block() {
            protected void handle(Object ignore) {
                itemRefresher.synchronize();
            }
        });

        selectionDialog.setOnSelectAction(new Closure() {
            public Object call(Object argument) {
View Full Code Here

TOP

Related Classes of org.springframework.richclient.selection.binding.support.ValueModel2EventListBridge

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.