Examples of FilteredListModel


Examples of org.jitterbit.ui.widget.list.FilteredListModel

        this(new HashSet<String>());
    }

    public DataElementsList(Collection<String> des) {
        contextMenuHandler = new ListContextMenuHandler();
        model = new FilteredListModel(new DefaultListModel());
        list = createList();
        setDataElements(des, false);
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.list.FilteredListModel

    private FilteredListModel createModel(Collection<String> des) {
        SortedSet<String> alphabetically = Sets.newTreeSet(String.CASE_INSENSITIVE_ORDER);
        alphabetically.addAll(des);
        ListModel items = ListUtils.createModel(alphabetically);
        FilteredListModel model = new FilteredListModel(items);
        if (listFilter != null) {
            model.addFilter(listFilter);
        }
        return model;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.list.FilteredListModel

    private boolean disableSelectedItems;

    public AvailableTablesList(TableSelectionModel selectionModel) {
        this.selectionModel = selectionModel;
        filteredListModel = new FilteredListModel(new DefaultListModel());
        list = createList();
        bindProperties();
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.list.FilteredListModel

        }

        private void createNewModel(DatabaseObjectContainer[] value) {
            ObjectListPopulator p = new ObjectListPopulator(value);
            ListModel listModel = p.getListModel();
            filteredListModel = new FilteredListModel(listModel);
            if (filter != null) {
                filteredListModel.addFilter(filter);
            }
        }
View Full Code Here

Examples of org.jitterbit.ui.widget.list.FilteredListModel

        this(Arrays.asList(editors));
    }

    private FilteredListModel createListModel(Iterable<Editor> editors) {
        ListModel m = ListUtils.createModel(KList.fromItems(editors).sort(new EditorTitleComparator()));
        return new FilteredListModel(m);
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.list.FilteredListModel

        setEditors(Arrays.asList(editors));
    }

    public final void setEditors(Iterable<Editor> editors) {
        List<ListFilter> filters = model.getFilters();
        FilteredListModel model = createListModel(editors);
        for (ListFilter f : filters) {
            model.addFilter(f);
        }
        list.setModel(model);
        this.model = model;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.list.FilteredListModel

        KList<T> list = KList.fromItems(entities).sort(BY_NAME);
        DefaultListModel unfiltered = new DefaultListModel();
        for (T e : list) {
            unfiltered.addElement(e);
        }
        return new FilteredListModel(unfiltered);
    }
View Full Code Here

Examples of org.springframework.richclient.list.FilteredListModel

    protected ListModel createSortedListModel(ListModel listModel, Comparator comparator) {
        return new SortedListModel(listModel, comparator);
    }

    protected AbstractFilteredListModel createFilteredModel(ListModel model, Constraint constraint) {
        return new FilteredListModel(model, constraint);
    }
View Full Code Here

Examples of org.springframework.richclient.list.FilteredListModel

        final ListModel retValue;
        if (null == constraint) {
            retValue = new XSObjectListModelAdapter(value.getValue());
        }
        else {
            retValue = new FilteredListModel(new XSObjectListModelAdapter(value.getValue()), constraint);
        }
        return retValue;
    }
View Full Code Here

Examples of org.springframework.richclient.list.FilteredListModel

        final ListModel retValue;
        if (null == constraint) {
            retValue = new XSObjectListModelAdapter(value.getSimilarTypes());
        }
        else {
            retValue = new FilteredListModel(new XSObjectListModelAdapter(value.getSimilarTypes()), constraint);
        }
        return retValue;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.