Package javax.swing.event

Examples of javax.swing.event.RowSorterListener


        searchResultsTable.getTableHeader().setReorderingAllowed(false);

        spectrumTable.setAutoCreateRowSorter(true);

        // make sure that the user is made aware that the tool is doing something during sorting of the spectrum table
        spectrumTable.getRowSorter().addRowSorterListener(new RowSorterListener() {
            @Override
            public void sorterChanged(RowSorterEvent e) {

                if (e.getType() == RowSorterEvent.Type.SORT_ORDER_CHANGED) {
                    peptideShakerGUI.setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));
View Full Code Here


        private void updateSorting() {
            SortStatus sortStatus = model.getSortStatus();
            if (sortStatus != null) {
                table.setSortingStatus(sortStatus.column, sortStatus.sortOrder);
            }
            table.getRowSorter().addRowSorterListener(new RowSorterListener() {
               
                @Override
                public void sorterChanged(RowSorterEvent e) {
                    model.setSortStatus(table.getSortStatus());
                }
View Full Code Here

        }

        private void installSorter(OperationLogTreeModel treeModel) {
            final LogTreeRowSorter sorter = new LogTreeRowSorter(tree);
            sorter.setCurrentSortStatus(model.getSortStatus());
            sorter.addRowSorterListener(new RowSorterListener() {
               
                @Override
                public void sorterChanged(RowSorterEvent e) {
                    model.setSortStatus(sorter.getSortStatus());
                }
View Full Code Here

        JSparklinesArrayListBarChartTableCellRenderer coverageCellRendered = new JSparklinesArrayListBarChartTableCellRenderer(PlotOrientation.HORIZONTAL, 100.0, sparklineColors, JSparklinesArrayListBarChartTableCellRenderer.ValueDisplayType.sumExceptLastNumber);
        coverageCellRendered.showNumberAndChart(true, TableProperties.getLabelWidth(), new DecimalFormat("0.00"));
        proteinTable.getColumn("Coverage").setCellRenderer(coverageCellRendered);

        // make sure that the user is made aware that the tool is doing something during sorting of the protein table
        proteinTable.getRowSorter().addRowSorterListener(new RowSorterListener() {
            @Override
            public void sorterChanged(RowSorterEvent e) {

                if (e.getType() == RowSorterEvent.Type.SORT_ORDER_CHANGED) {
                    peptideShakerGUI.setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));
View Full Code Here

TOP

Related Classes of javax.swing.event.RowSorterListener

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.