Package org.pentaho.reporting.libraries.docbundle

Examples of org.pentaho.reporting.libraries.docbundle.MemoryDocumentMetaData


      this.resourceManager.registerDefaults();

      dataFactory = new TableDataFactory();
      resourceBundleFactory = new DefaultResourceBundleFactory();
      configuration = ClassicEngineBoot.getInstance().getGlobalConfig();
      documentMetaData = new MemoryDocumentMetaData();
      reportEnvironment = new DefaultReportEnvironment(configuration);

      final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(reportEnvironment);
      parameterData = new CompoundDataRow(envDataRow, new ParameterDataRow());
View Full Code Here


        dataFactory = new TableDataFactory();
        resourceBundleFactory = new DefaultResourceBundleFactory();
        configuration = ClassicEngineBoot.getInstance().getGlobalConfig();
        contentBase = null;
        documentMetaData = new MemoryDocumentMetaData();
        reportEnvironment = new DefaultReportEnvironment(configuration);

        final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(reportEnvironment);
        parameterData = new CompoundDataRow(envDataRow, new ParameterDataRow());
      }
      else
      {
        this.resourceManager = report.getResourceManager();
        this.contentBase = report.getContentBase();
        final Object dataCacheEnabledRaw =
            report.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.DATA_CACHE);
        final boolean dataCacheEnabled = Boolean.FALSE.equals(dataCacheEnabledRaw) == false;
        this.dataFactory = new CachingDataFactory(report.getDataFactory().derive(), dataCacheEnabled);
        this.resourceBundleFactory = MasterReport.computeAndInitResourceBundleFactory
            (report.getResourceBundleFactory(), report.getReportEnvironment());
        this.reportEnvironment = report.getReportEnvironment();
        this.configuration = report.getConfiguration();
        final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(reportEnvironment);
        this.parameterData = new CompoundDataRow(envDataRow, new ParameterDataRow(report.getParameterValues()));

        dataFactory.initialize(configuration, report.getResourceManager(), report.getContentBase(), resourceBundleFactory);

        if (report.getBundle() != null)
        {
          documentMetaData = report.getBundle().getMetaData();
        }
        else
        {
          documentMetaData = new MemoryDocumentMetaData();
        }
      }
    }
View Full Code Here

    }
    catch (ResourceKeyCreationException rkce)
    {
      this.contentBase = null;
    }
    metaData = new MemoryDocumentMetaData();
  }
View Full Code Here

    this.resourceBundleFactory = MasterReport.computeAndInitResourceBundleFactory(resourceBundleFactory, environment);
    this.configuration = configuration;
    this.layoutSupport = layoutSupport;
    if (metaData == null)
    {
      this.metaData = new MemoryDocumentMetaData();
    }
    else
    {
      this.metaData = metaData;
    }
View Full Code Here

    {
      documentMetaData = bundle.getMetaData();
    }
    else
    {
      documentMetaData = new MemoryDocumentMetaData();
    }
    return new DefaultProcessingContext
        (metaData, new DefaultLayoutSupport(maxLineHeightUsed, imageResolutionMapping),
            report.getResourceBundleFactory(), report.getConfiguration(),
            report.getResourceManager(), report.getContentBase(), documentMetaData,
View Full Code Here

    private EditorParameterContext()
    {
      resourceManager = new ResourceManager();
      resourceBundleFactory = new DefaultResourceBundleFactory();
      defaultEnvironment = new DefaultReportEnvironment(ClassicEngineBoot.getInstance().getGlobalConfig());
      defaultDocumentMetaData = new MemoryDocumentMetaData();

      final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(defaultEnvironment);
      dataRow = new CompoundDataRow(envDataRow, new StaticDataRow());
    }
View Full Code Here

    if (super.performEdit() == false)
    {
      return null;
    }

    final MemoryDocumentMetaData o = new MemoryDocumentMetaData();
    if (StringUtils.isEmpty(keywordsField.getText()) == false)
    {
      o.setBundleAttribute
          (ODFMetaAttributeNames.Meta.NAMESPACE, ODFMetaAttributeNames.Meta.KEYWORDS, keywordsField.getText());
    }
    else
    {
      o.setBundleAttribute
          (ODFMetaAttributeNames.Meta.NAMESPACE, ODFMetaAttributeNames.Meta.KEYWORDS, null);
    }
    if (StringUtils.isEmpty(authorField.getText()) == false)
    {
      o.setBundleAttribute
          (ODFMetaAttributeNames.DublinCore.NAMESPACE, ODFMetaAttributeNames.DublinCore.CREATOR, authorField.getText());
    }
    else
    {
      o.setBundleAttribute
          (ODFMetaAttributeNames.DublinCore.NAMESPACE, ODFMetaAttributeNames.DublinCore.CREATOR, null);
    }
    if (StringUtils.isEmpty(descriptionField.getText()) == false)
    {
      o.setBundleAttribute
          (ODFMetaAttributeNames.DublinCore.NAMESPACE, ODFMetaAttributeNames.DublinCore.DESCRIPTION, descriptionField.getText());
    }
    else
    {
      o.setBundleAttribute
          (ODFMetaAttributeNames.DublinCore.NAMESPACE, ODFMetaAttributeNames.DublinCore.DESCRIPTION, null);
    }

    if (StringUtils.isEmpty(subjectField.getText()) == false)
    {
      o.setBundleAttribute
          (ODFMetaAttributeNames.DublinCore.NAMESPACE, ODFMetaAttributeNames.DublinCore.SUBJECT, subjectField.getText());
    }
    else
    {
      o.setBundleAttribute
          (ODFMetaAttributeNames.DublinCore.NAMESPACE, ODFMetaAttributeNames.DublinCore.SUBJECT, null);
    }

    if (StringUtils.isEmpty(titleField.getText()) == false)
    {
      o.setBundleAttribute
          (ODFMetaAttributeNames.DublinCore.NAMESPACE, ODFMetaAttributeNames.DublinCore.TITLE, titleField.getText());
    }
    else
    {
      o.setBundleAttribute
          (ODFMetaAttributeNames.DublinCore.NAMESPACE, ODFMetaAttributeNames.DublinCore.TITLE, null);
    }
    return o;
  }
View Full Code Here

    {
      this.contentBase = null;
    }
    formulaContext = DefaultFormulaContextFactory.INSTANCE.create
        (resourceBundleFactory.getLocale(), resourceBundleFactory.getTimeZone());
    metaData = new MemoryDocumentMetaData();
    compatibilityLevel = -1;
  }
View Full Code Here

    this.formulaContext = DefaultFormulaContextFactory.INSTANCE.create
        (resourceBundleFactory.getLocale(), resourceBundleFactory.getTimeZone());
    this.configuration = configuration;
    if (metaData == null)
    {
      this.metaData = new MemoryDocumentMetaData();
    }
    else
    {
      this.metaData = metaData;
    }
View Full Code Here

    {
      documentMetaData = bundle.getMetaData();
    }
    else
    {
      documentMetaData = new MemoryDocumentMetaData();
    }
    final Integer compatibilityLevel = report.getCompatibilityLevel();
    final int cLevel;
    if (compatibilityLevel == null)
    {
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.docbundle.MemoryDocumentMetaData

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.