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

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


    final int processingLevel = flowController.getReportContext().getProcessingLevel();
    if (processingLevel == LayoutProcess.LEVEL_PAGINATE &&
        report.isVisible() == false)
    {
      // make it a minimum effort report, but still enter the loop.
      final ReportDefinition parentReport = parentState.getReport();
      final SubReport dummyReport = new SubReport(functionStorageKey.getReportId());
      this.report = new ReportDefinitionImpl(dummyReport, parentReport.getPageDefinition());
      this.flowController = parentState.flowController.derive();
      this.advanceHandler = EndSubReportHandler.HANDLER;
      this.layoutProcess = new SubLayoutProcess
          (parentState.layoutProcess, computeStructureFunctions(report.getStructureFunctions(),
              flowController.getReportContext().getOutputProcessorMetaData()));
View Full Code Here


    super.reportInitialized(event);

    if (event.getState().isSubReportEvent() == false)
    {
      // only evaluate master-reports. Subreports are evaluated when their parent-band is evaluated.
      final ReportDefinition definition = event.getReport();
      evaluateElement(definition);
    }
  }
View Full Code Here

  public void reportInitialized(final ReportEvent event)
  {
    final boolean isTable = exportDescriptor != null &&
        getRuntime().getExportDescriptor().startsWith(exportDescriptor);

    final ReportDefinition report = event.getReport();
    if (isHidePageBands())
    {
      report.getPageHeader().setVisible(isTable == false);
      report.getPageFooter().setVisible(isTable == false);
    }
    if (isDisableRepeatingHeader())
    {
      final int gc = report.getGroupCount();
      for (int i = 0; i < gc; i++)
      {
        final Group g = report.getGroup(i);
        if (g.getHeader().isRepeat())
        {
          g.getHeader().setRepeat(isTable == false);
        }
      }
View Full Code Here


    if (event.getState().isSubReportEvent() == false)
    {
      // only evaluate master-reports. Subreports are evaluated when their parent-band is evaluated.
      final ReportDefinition definition = event.getReport();
      evaluateElement(definition);
    }
  }
View Full Code Here

      if (allRenderer instanceof RootBandRenderer)
      {
        final RootBandRenderer rootRenderer = (RootBandRenderer)allRenderer;
        final ReportDocumentContext context = rootRenderer.getReportRenderContext();
        final ReportDefinition reportDefinition = context.getReportDefinition();

        // Increase crosstab canvas height during a drag-n-drop operation of a new crosstab
        if (reportDefinition instanceof CrosstabElement)
        {
          rootRenderer.setVisualHeight(Unit.INCH.getDotsPerUnit() * 1.5 * 2);
 
View Full Code Here

    final Section parentSection = activeContext.getReportDefinition().getParentSection();
    if (parentSection == null)
    {
      return null;
    }
    final ReportDefinition parentReport = parentSection.getReportDefinition();
    if (parentReport == null)
    {
      return null;
    }
View Full Code Here

  }

  protected void printDesigntimeHeader(final ReportEvent event) throws ReportProcessingException
  {
    Renderer renderer = getRenderer();
    final ReportDefinition report = event.getState().getReport();
    if (isPrintHeaderAndFooter(event)) {
      renderer.startSection(Renderer.SectionType.NORMALFLOW);
      print(getRuntime(), report.getPageHeader());
      addSubReportMarkers(renderer.endSection());
    }
  }
View Full Code Here

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

  protected void processFooterBands(ReportState state)
  {
    while (state != null)
    {
      final ReportDefinition reportDefinition = state.getReport();
      processRootBand(reportDefinition.getPageFooter());
      if (state.isInItemGroup())
      {
        processRootBand(reportDefinition.getDetailsFooter());
      }
      Group g = reportDefinition.getRootGroup();
      int groupCounter = 0;
      while (g != null && groupCounter <= state.getCurrentGroupIndex())
      {
        processAllGroupFooterBands(g);
View Full Code Here

  protected void processHeaderBands(ReportState state)
  {
    while (state != null)
    {
      final ReportDefinition reportDefinition = state.getReport();
      processRootBand(reportDefinition.getPageHeader());
      if (state.isInItemGroup())
      {
        processRootBand(reportDefinition.getDetailsHeader());
      }
      Group g = reportDefinition.getRootGroup();
      int groupCounter = 0;
      while (g != null && groupCounter <= state.getCurrentGroupIndex())
      {
        processGroupHeaders(g);
View Full Code Here

TOP

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

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.