Package org.pentaho.reporting.libraries.resourceloader

Examples of org.pentaho.reporting.libraries.resourceloader.Resource


  {
    final URL url = getClass().getResource("Prd-3931.prpt");
    assertNotNull(url);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();
    final ReportElement crosstab = report.getChildElementByType(CrosstabGroupType.INSTANCE);
    crosstab.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Crosstab.DETAIL_MODE, CrosstabDetailMode.first);

    // Test whether the final page has out-of-bounds boxes. The FillPhysicalPages step should have removed them
    final PrintReportProcessor rp = new PrintReportProcessor(report);
View Full Code Here


  {
    final URL url = getClass().getResource("Crashing-crosstab.prpt");
    assertNotNull(url);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();
    final ReportElement crosstabCell = report.getChildElementByType(CrosstabCellType.INSTANCE);
//    crosstabCell.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.CROSSTAB_DETAIL_MODE, CrosstabDetailMode.first);

    // Test whether the final page has out-of-bounds boxes. The FillPhysicalPages step should have removed them
    final PrintReportProcessor rp = new PrintReportProcessor(report);
View Full Code Here

  {
    final URL url = getClass().getResource("Prd-2058.prpt");
    assertNotNull(url);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();
    report.addExpression(new EventMonitorFunction());

    DebugReportRunner.execGraphics2D(report);
  }
View Full Code Here

  {
    final URL url = getClass().getResource("Prd-3562.prpt");
    assertNotNull(url);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();

    PrintReportProcessor p = new PrintReportProcessor(report);
    p.paginate();
    assertTrue(p.isPaginated());
    assertFalse(p.isError());
View Full Code Here

    File file = GoldenSampleGenerator.locateGoldenSampleReport("Prd-3857-001.prpt");
    Assert.assertNotNull(file);

    final ResourceManager manager = new ResourceManager();
    manager.registerDefaults();
    final Resource res = manager.createDirectly(file, MasterReport.class);
    final MasterReport report = (MasterReport) res.getResource();

    List<LogicalPageBox> pages = DebugReportRunner.layoutPages(report, 0, 1);
    assertPageValid(pages, 0);
    assertPageValid(pages, 1);
  }
View Full Code Here

  {
    final URL url = getClass().getResource("Prd-2974-2.prpt");
    assertNotNull(url);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();
    report.getPageFooter().setSticky(false);
    report.getPageFooter().addElement(createLabel());
    report.getPageFooter().setName("Master-Footer");
    report.getReportHeader().getSubReport(0).getPageFooter().setName("Subreport-Footer");
    report.getReportHeader().getSubReport(0).getPageFooter().setSticky(true);
View Full Code Here

  {
    final URL url = getClass().getResource("Prd-2974-2.prpt");
    assertNotNull(url);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();
    report.getPageFooter().setSticky(true);
    report.getPageFooter().addElement(createLabel());
    report.getPageFooter().setName("Master-Footer");
    report.getReportHeader().getSubReport(0).getPageFooter().setName("Subreport-Footer");
    report.getReportHeader().getSubReport(0).getPageFooter().setSticky(true);
View Full Code Here

  {
    final URL url = getClass().getResource("Prd-2974-2.prpt");
    assertNotNull(url);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();
    report.getPageFooter().setSticky(false);
    report.getPageFooter().addElement(createLabel());
    report.getPageFooter().setName("Master-Footer");
    report.getReportHeader().getSubReport(0).getPageFooter().setName("Subreport-Footer");
    report.getReportHeader().getSubReport(0).getPageFooter().setSticky(false);
View Full Code Here

  {
    final URL url = getClass().getResource("Prd-2974-2.prpt");
    assertNotNull(url);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();
    report.getPageFooter().setSticky(true);
    report.getPageFooter().addElement(createLabel());
    report.getPageFooter().setName("Master-Footer");
    report.getReportHeader().getSubReport(0).getPageFooter().setName("Subreport-Footer");
    report.getReportHeader().getSubReport(0).getPageFooter().setSticky(false);
View Full Code Here

  {
    final URL url = getClass().getResource("Prd-2974-2.prpt");
    assertNotNull(url);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();
    report.getPageFooter().setSticky(false);
    report.getPageFooter().addElement(createLabel("PageFooter-Label"));
    report.getPageFooter().setName("Master-Footer");
    report.getReportHeader().getSubReport(0).getPageFooter().setName("Subreport-Footer");
    report.getReportHeader().getSubReport(0).getPageFooter().setSticky(true);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.resourceloader.Resource

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.