Examples of ReportHeader


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

  @Test
  public void testRowLayoutAtDesignTimeInv() throws Exception
  {
    LogFactory.getLog("test").error("Test");
    MasterReport report = new MasterReport();
    ReportHeader reportHeader = report.getReportHeader();
    reportHeader.setLayout(BandStyleKeys.LAYOUT_ROW);
    reportHeader.getStyle().setStyleProperty(ElementStyleKeys.INVISIBLE_CONSUMES_SPACE, true);
    reportHeader.addElement(createElement(true));
    reportHeader.addElement(createElement(false));
    reportHeader.addElement(createElement(true));

    LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBandInDesignTime(report, reportHeader);

    RenderNode[] elementsByElementType = MatchFactory.findElementsByNodeType(logicalPageBox, LayoutNodeTypes.TYPE_BOX_PARAGRAPH);
    Assert.assertEquals(3, elementsByElementType.length);
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.