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

Examples of org.pentaho.reporting.engine.classic.core.ReportHeader


    super("report-header", false);
  }

  public ReportElement create()
  {
    return new ReportHeader();
  }
View Full Code Here


    band.getStyle().setStyleProperty(ElementStyleKeys.WIDOWS, 2);
    band.addElement(createBand("group-header-outside"));
    band.addElement(outsideBody);
    band.addElement(createBand("group-footer-outside"));

    final ReportHeader header = report.getReportHeader();
    header.getStyle().setStyleProperty(ElementStyleKeys.WIDOW_ORPHAN_OPT_OUT, true);
    header.getStyle().setStyleProperty(ElementStyleKeys.AVOID_PAGEBREAK_INSIDE, false);
    header.setLayout(BandStyleKeys.LAYOUT_BLOCK);
    header.addElement(createBand("placeholder", 60));
    header.addElement(band);

    List<LogicalPageBox> pages = DebugReportRunner.layoutPages(report, 0, 1, 2);
    final LogicalPageBox logicalPageBox = pages.get(0);
    // if keep-together works, then we avoid the pagebreak between the inner-group-header and the first itemband.
    // therefore the first page only contains the placeholder element.
View Full Code Here

    final Band outsideBody = new Band();
    outsideBody.setLayout(BandStyleKeys.LAYOUT_BLOCK);
    outsideBody.setName("group-body-outside");
    outsideBody.addElement(insideGroup);

    final ReportHeader band = report.getReportHeader();
    band.getStyle().setStyleProperty(ElementStyleKeys.AVOID_PAGEBREAK_INSIDE, false);
    band.setLayout(BandStyleKeys.LAYOUT_BLOCK);
    band.setName("group-outside");
    band.getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);
    band.getStyle().setStyleProperty(ElementStyleKeys.WIDOWS, 2);
    band.addElement(createBand("group-header-outside"));
    band.addElement(outsideBody);
    band.addElement(createBand("group-footer-outside"));

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    final RenderNode grOut = MatchFactory.findElementByName(logicalPageBox, "group-outside");
    assertTrue(grOut instanceof RenderBox);
    final RenderBox grOutBox = (RenderBox) grOut;
View Full Code Here

    final Band outsideBody = new Band();
    outsideBody.setLayout(BandStyleKeys.LAYOUT_BLOCK);
    outsideBody.setName("group-body-outside");
    outsideBody.addElement(insideGroup);

    final ReportHeader band = report.getReportHeader();
    band.getStyle().setStyleProperty(ElementStyleKeys.AVOID_PAGEBREAK_INSIDE, false);
    band.getStyle().setStyleProperty(ElementStyleKeys.WIDOW_ORPHAN_OPT_OUT, true);
    band.setLayout(BandStyleKeys.LAYOUT_BLOCK);
    band.setName("group-outside");
    band.getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);
    band.getStyle().setStyleProperty(ElementStyleKeys.WIDOWS, 2);
    band.addElement(createBand("group-header-outside"));
    band.addElement(outsideBody);
    band.addElement(createBand("group-footer-outside"));

    List<LogicalPageBox> pages = DebugReportRunner.layoutPages(report, 0, 1);
    final LogicalPageBox logicalPageBox1 = pages.get(0);
    ModelPrinter.INSTANCE.print(logicalPageBox1);
    final RenderNode grHOut2 = MatchFactory.findElementByName(logicalPageBox1, "group-header-outside");
View Full Code Here

    final Band outsideBody = new Band();
    outsideBody.setLayout(BandStyleKeys.LAYOUT_BLOCK);
    outsideBody.setName("group-body-outside");
    outsideBody.addElement(insideGroup);

    final ReportHeader band = report.getReportHeader();
    band.getStyle().setStyleProperty(ElementStyleKeys.AVOID_PAGEBREAK_INSIDE, false);
    band.getStyle().setStyleProperty(ElementStyleKeys.WIDOW_ORPHAN_OPT_OUT, true);
    band.setLayout(BandStyleKeys.LAYOUT_BLOCK);
    band.setName("group-outside");
    band.getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);
    band.getStyle().setStyleProperty(ElementStyleKeys.WIDOWS, 2);
    band.addElement(createBand("group-header-outside"));
    band.addElement(outsideBody);
    band.addElement(createBand("group-footer-outside"));

    List<LogicalPageBox> pages = DebugReportRunner.layoutPages(report, 0, 1, 2);
    final LogicalPageBox logicalPageBox1 = pages.get(0);
    ModelPrinter.INSTANCE.print(logicalPageBox1);
    final RenderNode grHOut2 = MatchFactory.findElementByName(logicalPageBox1, "group-header-outside");
View Full Code Here

    final Band outsideBody = new Band();
    outsideBody.setLayout(BandStyleKeys.LAYOUT_BLOCK);
    outsideBody.setName("group-body-outside");
    outsideBody.addElement(insideGroup);

    final ReportHeader band = report.getReportHeader();
    band.getStyle().setStyleProperty(ElementStyleKeys.AVOID_PAGEBREAK_INSIDE, false);
    band.getStyle().setStyleProperty(ElementStyleKeys.WIDOW_ORPHAN_OPT_OUT, true);
    band.setLayout(BandStyleKeys.LAYOUT_BLOCK);
    band.setName("group-outside");
    band.getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);
    band.getStyle().setStyleProperty(ElementStyleKeys.WIDOWS, 2);
    band.addElement(createBand("group-header-outside"));
    band.addElement(outsideBody);
    band.addElement(createBand("group-footer-outside"));

    List<LogicalPageBox> pages = DebugReportRunner.layoutPages(report, 0, 1, 2);
    final LogicalPageBox logicalPageBox1 = pages.get(0);
    ModelPrinter.INSTANCE.print(logicalPageBox1);
    final RenderNode grHOut2 = MatchFactory.findElementByName(logicalPageBox1, "group-header-outside");
View Full Code Here

    table.getStyle().setStyleProperty(ElementStyleKeys.MIN_WIDTH, -100f);
    table.getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, 200f);
    table.addElement(TableTestUtil.createAutoBox(tableBody));

    final MasterReport report = new MasterReport();
    final ReportHeader band = report.getReportHeader();
    band.addElement(table);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    //ModelPrinter.print(logicalPageBox);

    final DescendantMatcher matcher = new DescendantMatcher
View Full Code Here

    table.getStyle().setStyleProperty(ElementStyleKeys.MIN_WIDTH, -100f);
    table.getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, 200f);
    table.addElement(TableTestUtil.createAutoBox(tableBody));

    final MasterReport report = new MasterReport();
    final ReportHeader band = report.getReportHeader();
    band.addElement(table);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    //ModelPrinter.print(logicalPageBox);

    final DescendantMatcher matcher = new DescendantMatcher
View Full Code Here

    table.getStyle().setStyleProperty(BandStyleKeys.LAYOUT, BandStyleKeys.LAYOUT_TABLE);
    table.getStyle().setStyleProperty(ElementStyleKeys.MIN_WIDTH, -100f);
    table.getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, 200f);

    final MasterReport report = new MasterReport();
    final ReportHeader band = report.getReportHeader();
    band.addElement(table);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    //ModelPrinter.print(logicalPageBox);

    final DescendantMatcher matcher = new DescendantMatcher
View Full Code Here

    outsideBody.setLayout(BandStyleKeys.LAYOUT_BLOCK);
    outsideBody.setName("group-body-outside");
    outsideBody.addElement(insideGroup);
    outsideBody.addElement(insideGroup2);

    final ReportHeader band = report.getReportHeader();
    band.getStyle().setStyleProperty(ElementStyleKeys.AVOID_PAGEBREAK_INSIDE, false);
    band.setLayout(BandStyleKeys.LAYOUT_BLOCK);
    band.setName("group-outside");
    band.getStyle().setStyleProperty(ElementStyleKeys.WIDOWS, 2);
    band.addElement(createBand("group-header-outside"));
    band.addElement(outsideBody);
    band.addElement(createBand("group-footer-outside"));

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    final RenderNode grOut = MatchFactory.findElementByName(logicalPageBox, "group-outside");
    assertTrue(grOut instanceof RenderBox);
    final RenderBox grOutBox = (RenderBox) grOut;
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.ReportHeader

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.