Examples of CrosstabCell


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

    if (crosstabLayout.isDetailsRendered())
    {
      return;
    }

    final CrosstabCell element = dataBody.findElement(null, null);
    if (element != null)
    {
      final CrosstabDetailMode detailMode = crosstabLayout.getDetailMode();
      if (detailMode == null)
      {
View Full Code Here

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

  {
    final RenderedCrosstabLayout crosstabLayout = outputFunction.getCurrentRenderedCrosstabLayout();
    if (CrosstabDetailMode.last.equals(crosstabLayout.getDetailMode()))
    {
      final CrosstabCellBody dataBody = event.getReport().getCrosstabCellBody();
      final CrosstabCell element = dataBody.findElement(null, null);
      if (element != null)
      {
        outputFunction.getRenderer().startSection(Renderer.SectionType.NORMALFLOW);
        outputFunction.getRenderer().add(element, outputFunction.getRuntime());
        outputFunction.addSubReportMarkers(outputFunction.getRenderer().endSection());
View Full Code Here

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

    {
      return;
    }

    final CrosstabCellBody dataBody = event.getReport().getCrosstabCellBody();
    final CrosstabCell element = dataBody.findElement(null, group.getField());
    if (element == null)
    {
      return;
    }
View Full Code Here

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

    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

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

    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

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

      crosstabLayout.startSummaryRowProcessing(false, gidx, null);
      return;
    }

    final CrosstabCellBody dataBody = event.getReport().getCrosstabCellBody();
    final CrosstabCell element = dataBody.findElement(group.getField(), null);
    if (element == null)
    {
      crosstabLayout.startSummaryRowProcessing(false, gidx, null);
      return;
    }
View Full Code Here

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

      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

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

    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

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

  {
    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);
    final RenderNode renderNode = elementsByName[0];
    assertEquals(Boolean.TRUE,
View Full Code Here

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

    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);
    final RenderNode renderNode = elementsByName[0];
    assertEquals(Boolean.TRUE,
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.