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

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


      // a detail level summary row cell.
      columnField = null;
    }

    final LayoutModelBuilder layoutModelBuilder = outputFunction.getRenderer().getNormalFlowLayoutModelBuilder();
    final CrosstabCellBody dataBody = event.getReport().getCrosstabCellBody();
    final CrosstabCell element = dataBody.findElement(crosstabLayout.getSummaryRowField(), columnField);

    if (element != null)
    {
      CrosstabOutputHelper.createAutomaticCell(layoutModelBuilder);
      layoutModelBuilder.legacyFlagNotEmpty();
View Full Code Here


    final CrosstabColumnGroup columnGroup = columnGroupBody.getGroup();
    columnGroup.setField("Cols");
    columnGroup.getTitleHeader().addElement(createDataItem("Cols"));
    columnGroup.getHeader().addElement(createFieldItem("Cols"));

    final CrosstabCellBody body = (CrosstabCellBody) columnGroup.getBody();
    final CrosstabCell cell = new CrosstabCell();
    cell.addElement(createFieldItem("Data"));
    body.addElement(cell);
    return crosstabGroup;
  }
View Full Code Here

  public void testBold() throws Exception
  {
    final MasterReport masterReport = DebugReportRunner.parseGoldenSampleReport("Prd-3857-002.prpt");
    masterReport.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "false");
    masterReport.setQueryLimit(1);
    final CrosstabCellBody crosstabCellBody = masterReport.getCrosstabCellBody();
    final CrosstabCell element = crosstabCellBody.findElement(null, null);
    element.setName("Cell-Sample");
    element.getStyle().setStyleProperty(TextStyleKeys.BOLD, true);
    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutPage(masterReport, 0);
    final RenderNode[] elementsByName = MatchFactory.findElementsByName(logicalPageBox, "Cell-Sample");
    assertTrue(elementsByName.length > 0);
View Full Code Here

  {
    final MasterReport masterReport = DebugReportRunner.parseGoldenSampleReport("Prd-3857-002.prpt");
    masterReport.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "true");
    masterReport.getStyle().setStyleProperty(TextStyleKeys.WORDBREAK, true);
    masterReport.setQueryLimit(1);
    final CrosstabCellBody crosstabCellBody = masterReport.getCrosstabCellBody();
    final CrosstabCell element = crosstabCellBody.findElement(null, null);
    element.setName("Cell-Sample");
    element.getStyle().setStyleProperty(TextStyleKeys.BOLD, true);
    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutPage(masterReport, 0);
    final RenderNode[] elementsByName = MatchFactory.findElementsByName(logicalPageBox, "Cell-Sample");
    assertTrue(elementsByName.length > 0);
View Full Code Here

    if (rows.size() == 0)
    {
      throw new IllegalStateException();
    }

    final CrosstabCellBody cellBody = createCellBody();

    GroupBody body = createColumnGroups(cellBody);
    body = createRowGroups(cellBody, body);
    body = createOtherGroups(body);
View Full Code Here

    return new CrosstabGroup(body);
  }

  protected CrosstabCellBody createCellBody()
  {
    final CrosstabCellBody cellBody = new CrosstabCellBody();
    cellBody.addElement(createDetailsCell("details-cell", null, null));
    setupDetailsHeader(cellBody.getHeader());
    return cellBody;
  }
View Full Code Here

TOP

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

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.