Package ca.odell.glazedlists.swing

Examples of ca.odell.glazedlists.swing.TextComponentMatcherEditor


     *
     * @param filterEdit a text field for typing in the filter text.
     */
    public TextFilterList(EventList source, TextFilterator filterator, JTextField filterEdit) {
        super(new FilterList(source));
        this.matcherEditor = new TextComponentMatcherEditor(filterEdit, filterator);
        this.filterEdit = filterEdit;
        ((FilterList)this.source).setMatcherEditor(matcherEditor);

        // handle changes
        this.source.addListEventListener(this);
View Full Code Here


        boolean live = matcherEditor.isLive();
        TextFilterator textFilterator = matcherEditor.getFilterator();
        matcherEditor.dispose();

        // prepare the new matcher editor
        this.matcherEditor = new TextComponentMatcherEditor(filterEdit, textFilterator, live);
        ((FilterList)source).setMatcherEditor(matcherEditor);
    }
View Full Code Here

    }

    protected JComponent createFilterComponent() {
        JTextField filter = new JTextField();

        filterList.setMatcherEditor(new TextComponentMatcherEditor(filter, filterator));

        TextComponentPopup.attachPopup(filter);
        filter.addKeyListener(new KeyAdapter() {
            public void keyPressed(KeyEvent e) {
                if (e.getKeyCode() == KeyEvent.VK_DOWN) {
View Full Code Here

            // setup below, the text entered by the user will be matched against the values
            // in the lastName and address.address1 properties of the contacts in the table.
            // The GlazedLists filtered lists is used to accomplish this.
            EventList baseList = contactTable.getBaseEventList();
            TextFilterator filterator = GlazedLists.textFilterator(new String[]{"lastName", "address.address1"});
            FilterList filterList = new FilterList(baseList, new TextComponentMatcherEditor(filterField, filterator));

            // Install the fully constructed (layered) list into the table
            contactTable.setFinalEventList(filterList);

            // Install the popup menu
View Full Code Here

       
        selectedProjectsModel = new EventSelectionModel( sortedProjects );
        selectedProjectsModel.setSelectionMode( ListSelection.MULTIPLE_INTERVAL_SELECTION_DEFENSIVE );
       
        FilterList textFilteredIssues = new FilterList( sortedProjects,
            new TextComponentMatcherEditor( filterEditor, new ProjectTextFilterator()) );

        EventTableModel statusTableModel = new EventTableModel( textFilteredIssues, format );
      
        statusTable = new JTable(statusTableModel);
        statusTable.setShowVerticalLines(true);
View Full Code Here

TOP

Related Classes of ca.odell.glazedlists.swing.TextComponentMatcherEditor

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.