Examples of SubReport


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

  protected Object finishResult(final Object res,
                                final ResourceManager manager,
                                final ResourceData data,
                                final ResourceKey context) throws ResourceCreationException, ResourceLoadingException
  {
    final SubReport report = (SubReport) res;
    if (report == null)
    {
      throw new ResourceCreationException("Report has not been parsed.");
    }

    // subreports use the content-base of their master-report for now. This is safe for the old platform reports
    // and for bundle-reports.
    report.setDefinitionSource(data.getKey());
    return report;

  }
View Full Code Here

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

        throw new ParseException("The specified subreport was not found or could not be loaded.", e, getLocator());
      }
    }
    else
    {
      report = new SubReport();
    }

    final String query = attrs.getValue(getUri(), "query");
    if (query != null)
    {
View Full Code Here

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

    else
    {
      if (ReportParserUtil.INCLUDE_PARSING_VALUE.equals(getRootHandler().getHelperObject
          (ReportParserUtil.INCLUDE_PARSING_KEY)))
      {
        report = new SubReport();
      }
      else
      {
        report = new MasterReport();
      }
View Full Code Here

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

  {
    final Object maybeReport = getRootHandler().getHelperObject(ReportParserUtil.HELPER_OBJ_REPORT_NAME);
    if (maybeReport instanceof SubReport == false)
    {
      // replace it ..
      report = new SubReport();
      getRootHandler().setHelperObject(ReportParserUtil.HELPER_OBJ_REPORT_NAME, report);
    }
    else
    {
      report = (SubReport) maybeReport;
View Full Code Here

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

  private boolean parseLayout(final String layout) throws ParseException
  {
    try
    {
      final SubReport report = (SubReport) performExternalParsing(layout, SubReport.class);
      return report == this.report;
    }
    catch (ResourceLoadingException e)
    {
      SubContentRootElementHandler.logger.warn("Unable to parse the parameter for this bundle from file: " + layout);
View Full Code Here

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

  private boolean parseStyles(final String stylefile) throws ParseException
  {
    try
    {
      final SubReport report = (SubReport) performExternalParsing(stylefile, SubReport.class);
      return report == this.report;
    }
    catch (ResourceLoadingException e)
    {
      SubContentRootElementHandler.logger.warn("Unable to parse the parameter for this bundle from file: " + stylefile);
View Full Code Here

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

    {
      final RootLevelBand rlb = (RootLevelBand) b;
      final SubReport[] reports = rlb.getSubReports();
      for (int i = 0; i < reports.length; i++)
      {
        final SubReport subReport = reports[i];
        if (evaluateElement(subReport))
        {
          hasAttrExpressions = true;
        }
      }
View Full Code Here

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

              report.getQueryTimeout(), flowController.getMasterRow().getResourceBundleFactory());

      final Object originalEnable =
          report.getAttribute(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.ENABLE);
      report.setAttribute(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.ENABLE, Boolean.TRUE);
      final SubReport subReport = processor.performPreProcessing(report, postQueryFlowController);
      subReport.setAttribute(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.ENABLE, originalEnable);
      return subReport;
    }
    finally
    {
      dataFactory.close();
View Full Code Here

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

            ("reportField1", new Rectangle(0, 0, 100, 20), Color.BLACK,
                ElementAlignment.LEFT, ElementAlignment.TOP,
                new FontDefinition("Arial", 12), "-", "c1");
    report.getItemBand().addElement(textElement);

    SubReport subReport = new SubReport();
    subReport.addInputParameter("c1", "c1");
    subReport.setQuery("org.pentaho.reporting.engine.classic.testcases.base.basic.SubReportParameterPassingTest#createSubReportTableModel(c1)");
    Element subReportTextElement =
        TextFieldElementFactory.createStringElement
            ("subreportField1", new Rectangle(20, 0, 100, 20),
                Color.RED, ElementAlignment.LEFT,
                ElementAlignment.TOP, new FontDefinition("Arial", 12), "-", "t1");
    subReport.getItemBand().addElement(subReportTextElement);

    report.getItemBand().addSubReport(subReport);

    FunctionalityTestLib.execGraphics2D(report);
View Full Code Here

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

      throw new NullPointerException();
    }

    try
    {
      final SubReport report = (SubReport) definition.clone();
      generate(report, flowController);
      return report;
    }
    catch (CloneNotSupportedException e)
    {
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.