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

Examples of org.pentaho.reporting.engine.classic.core.CrosstabCellBody.findElement()


    {
      throw new IllegalStateException("A crosstab group can never be without a cell body");
    }

    LinkedHashMap<String, DetailsDefinition> details;
    CrosstabCell element = cellBody.findElement(null, null);
    if (element != null)
    {
      details = extractFromDetailCell(element, cellBody.getHeader());
    }
    else
View Full Code Here


    if (event.getState().isCrosstabActive())
    {
      final CrosstabCellBody crosstabCellBody = event.getReport().getCrosstabCellBody();
      processRootBand(crosstabCellBody.getHeader());
      processRootBand(crosstabCellBody.findElement(null, null));
    }
    else
    {
      final ReportDefinition reportDefinition = event.getReport();
      processRootBand(reportDefinition.getDetailsHeader());
View Full Code Here

    }

    if (event.getState().isCrosstabActive())
    {
      final CrosstabCellBody crosstabCellBody = event.getReport().getCrosstabCellBody();
      processRootBand(crosstabCellBody.findElement(null, null));
    }
    else
    {
      final ItemBand itemBand = event.getReport().getItemBand();
      processRootBand(itemBand);
View Full Code Here

    }

    if (event.getState().isCrosstabActive())
    {
      final CrosstabCellBody crosstabCellBody = event.getReport().getCrosstabCellBody();
      processRootBand(crosstabCellBody.findElement(null, null));
    }
    else
    {
      processRootBand(event.getReport().getDetailsFooter());
    }
View Full Code Here

    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

  {
    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

    {
      return;
    }

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

      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

      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 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

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.