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

Examples of org.pentaho.reporting.engine.classic.core.MasterReport.addExpression()


  public void testGroupItemCount() throws ReportDefinitionException
  {
    CountryReportSecurityXMLDemoHandler demoHandler = new CountryReportSecurityXMLDemoHandler();
    MasterReport report = demoHandler.createReport();
    report.addExpression(new TotalItemCountVerifyFunction());
    final RelationalGroup g = report.getGroupByName("default");
    if (g != null)
    {
      report.removeGroup(g);
    }
View Full Code Here


    TotalItemCountFunction f = new TotalItemCountFunction();
    f.setName("continent-total-gc");
    f.setGroup("Continent Group");
    f.setDependencyLevel(1);
    report.addExpression(f);

    TotalItemCountFunction f2 = new TotalItemCountFunction();
    f2.setName("total-gc");
    f2.setDependencyLevel(1);
    report.addExpression(f2);
View Full Code Here

    report.addExpression(f);

    TotalItemCountFunction f2 = new TotalItemCountFunction();
    f2.setName("total-gc");
    f2.setDependencyLevel(1);
    report.addExpression(f2);

    assertTrue(FunctionalityTestLib.execGraphics2D(report));


  }
View Full Code Here

    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();
    final EventMonitorFunction eventMonitorFunction = new EventMonitorFunction("Name");
    eventMonitorFunction.setDeepTraversing(true);
    report.addExpression(eventMonitorFunction);

    final PrintReportProcessor prc = new PrintReportProcessor(report);
    assertEquals("18 pages", 18, prc.getNumberOfPages());
    final PageDrawable pageDrawable = prc.getPageDrawable(2);
    assertNotNull(pageDrawable);
View Full Code Here

    report.getGroup(0).getFooter().addElement(LabelElementFactory.createLabelElement
        (null, new Rectangle2D.Float(0, 0, 150, 20), null,
            ElementAlignment.LEFT, null, "Text"));

    report.addExpression(new EventOrderFunction("event-order"));
    report.addExpression(new EventMonitorFunction("event-monitor"));
    return report;
  }

  public void testEventOrder() throws Exception
View Full Code Here

    report.getGroup(0).getFooter().addElement(LabelElementFactory.createLabelElement
        (null, new Rectangle2D.Float(0, 0, 150, 20), null,
            ElementAlignment.LEFT, null, "Text"));

    report.addExpression(new EventOrderFunction("event-order"));
    report.addExpression(new EventMonitorFunction("event-monitor"));
    return report;
  }

  public void testEventOrder() throws Exception
  {
View Full Code Here

  {
    GroupsDemo demo = new GroupsDemo();
    MasterReport report = demo.createReport();
    final PageFunction pf = new PageFunction("JUnit-Page");
    pf.setDependencyLevel(2);
    report.addExpression(pf);
//    report.addExpression(new PageVerifyFunction("pf-verify"));

    assertTrue(FunctionalityTestLib.execGraphics2D(report));
  }
}
View Full Code Here

    final CountryReportXMLDemoHandler demoHandler =
            new CountryReportXMLDemoHandler();
    try
    {
      final MasterReport report = demoHandler.createReport();
      report.addExpression(new TotalGroupCountVerifyFunction());
      // make sure that there is no default group ...
      final RelationalGroup g = report.getGroupByName("default");
      if (g != null)
      {
        report.removeGroup(g);
View Full Code Here

      final TotalGroupSumFunction f = new TotalGroupSumFunction();
      f.setName("continent-total-gc");
      f.setGroup("Continent Group");
      f.setField("Population");
      f.setDependencyLevel(1);
      report.addExpression(f);

      final TotalGroupSumFunction f2 = new TotalGroupSumFunction();
      f2.setName("total-gc");
      f2.setField("Population");
      f2.setDependencyLevel(1);
View Full Code Here

      final TotalGroupSumFunction f2 = new TotalGroupSumFunction();
      f2.setName("total-gc");
      f2.setField("Population");
      f2.setDependencyLevel(1);
      report.addExpression(f2);

      assertTrue(FunctionalityTestLib.execGraphics2D(report));
    }
    catch (Exception e)
    {
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.