Package org.jboss.dashboard.dataset

Examples of org.jboss.dashboard.dataset.DataSetComparator


                new String[] {"Support", "3,345.6"},
                new String[] {"Management", "6,017.47"}}, 0);


        // Sort by department and check the expected results.
        DataSetComparator comp = new DataSetComparator();
        comp.addSortCriteria("0", DataSetComparator.ORDER_DESCENDING);
        xyDataSet = xyDataSet.sort(comp);
        assertDataSetValues(xyDataSet, new String[][] {
                new String[] {"Support", "3,345.6"}}, 0);

        // Sort by amount and check the expected results.
        comp = new DataSetComparator();
        comp.addSortCriteria("1", DataSetComparator.ORDER_ASCENDING);
        xyDataSet = xyDataSet.sort(comp);
        assertDataSetValues(xyDataSet, new String[][]{
                new String[]{"Services", "2,504.5"}}, 0);

    }
View Full Code Here


        return dataSet.getValueAt(rowIndex, columnIndex);
    }

    public ComparatorByCriteria getComparator() {
        if (comparator == null) {
            this.comparator = new DataSetComparator();
        }
        return super.getComparator();
    }
View Full Code Here

            List<String> targetFunctionCodes = Arrays.asList(new String[]{CountFunction.CODE, scalarFunction.getCode()});
            targetDataSet = sourceDataSet.groupBy(domainProperty, targetDataProps, targetFunctionCodes);

            // Sort the resulting data set according to the sort policy specified.
            if (intervalsSortOrder != INTERVALS_SORT_ORDER_NONE) {
                DataSetComparator comp = new DataSetComparator();
                comp.addSortCriteria(Integer.toString(intervalsSortCriteria), intervalsSortOrder);
                targetDataSet.sort(comp);
            }
        } finally {
            trace.end();
        }
View Full Code Here

        groupBySelectedColumnIndex = -1;
        showGroupByConfig = false;
    }

    protected ComparatorByCriteria createTableComparator() {
        return new DataSetComparator();
    }
View Full Code Here

TOP

Related Classes of org.jboss.dashboard.dataset.DataSetComparator

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.