Package org.jboss.dashboard.dataset

Examples of org.jboss.dashboard.dataset.DataSet.sort()



        // 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();
View Full Code Here


                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

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.