Package org.pentaho.reporting.engine.classic.core.sorting

Examples of org.pentaho.reporting.engine.classic.core.sorting.SortConstraint


    MasterReport report = (MasterReport) new ResourceManager().createDirectly(url, MasterReport.class).getResource();
    report.setAutoSort(true);
    SortOrderReportPreProcessor p = new SortOrderReportPreProcessor();
    List<SortConstraint> sortConstraints = p.computeSortConstraints(report.getReportFooter().getSubReport(0));
    List<SortConstraint> expectedSortConstraints = new ArrayList<SortConstraint>();
    expectedSortConstraints.add(new SortConstraint("year", true));
    expectedSortConstraints.add(new SortConstraint("month", true));
    Assert.assertEquals(expectedSortConstraints, sortConstraints);
    DebugReportRunner.execGraphics2D(report);
  }
View Full Code Here


    final ArrayList<SortConstraint> c = new ArrayList<SortConstraint>(fields.size());
    for (final String field : fields)
    {
      if (!StringUtils.isEmpty(field))
      {
        c.add(new SortConstraint(field, ascending));
      }
    }
    return c;
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.sorting.SortConstraint

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.