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

Examples of org.pentaho.reporting.engine.classic.core.function.ProcessingContext


    resolveStyle(report);
    resolveStyle(reportHeader);

    metaData.initialize(wrapForCompatibility(report));

    final ProcessingContext processingContext = new DefaultProcessingContext(report, metaData);
    final DebugExpressionRuntime runtime = new DebugExpressionRuntime
        (new DefaultTableModel(), 0, processingContext);

    final DebugRenderer debugLayoutSystem = new DebugRenderer(metaData);
    debugLayoutSystem.setStateKey(stateKey);
View Full Code Here


    final Band details = AutoGeneratorUtility.findGeneratedContent(groupDataBody.getItemBand());
    final Band header = AutoGeneratorUtility.findGeneratedContent(groupDataBody.getDetailsHeader());
    final Band footer = AutoGeneratorUtility.findGeneratedContent(groupDataBody.getDetailsFooter());

    final ProcessingContext reportContext = flowController.getReportContext();
    final DefaultDataAttributeContext dac = new DefaultDataAttributeContext
        (reportContext.getOutputProcessorMetaData(), reportContext.getResourceBundleFactory().getLocale());

    final DataRow dataRow = flowController.getMasterRow().getGlobalView();
    final DataSchema dataSchema = flowController.getMasterRow().getDataSchema();

    // final Locale locale = reportContext.getResourceBundleFactory().getLocale();
View Full Code Here

      if (hasOverrideFunction == false)
      {
        definition.addStructureFunction(new WizardOverrideFormattingFunction());
      }

      final ProcessingContext reportContext = flowController.getReportContext();
      this.definition = definition;
      this.flowController = flowController;
      this.attributeContext = new DefaultDataAttributeContext(reportContext.getOutputProcessorMetaData(),
          reportContext.getResourceBundleFactory().getLocale());

      final Object o = definition.getAttribute(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.ENABLE);
      if (Boolean.TRUE.equals(o) == false)
      {
        return performRefreshPreProcessing();
View Full Code Here

        else
        {
          // subreport comes with an own factory, so open the gates ..
          final DataFactory sortingDataFactory = new SortingDataFactory(subreportDf, performanceMonitorContext);
          final CachingDataFactory cdataFactory = new CachingDataFactory(sortingDataFactory, dataCacheEnabled);
          final ProcessingContext context = postPreProcessingFlowController.getReportContext();
          cdataFactory.initialize(new ProcessingDataFactoryContext(context, cdataFactory));
          dataFactoryManager.store(functionStorageKey, cdataFactory, isReportsShareConnections(preDataSubReport));
          dataFactory = cdataFactory;
        }
      }
View Full Code Here

        plot.setBackgroundImage(plotImageCache);
      }
      else
      {
        final ExpressionRuntime expressionRuntime = getRuntime();
        final ProcessingContext context = expressionRuntime.getProcessingContext();
        final ResourceKey contentBase = context.getContentBase();
        final ResourceManager manager = context.getResourceManager();
        try
        {
          final ResourceKey key = createKeyFromString(manager, contentBase, backgroundImage);
          final Resource resource = manager.create(key, null, Image.class);
          final Image image = (Image) resource.getResource();
View Full Code Here

    wizardSpecification.setDetailFieldDefinitions(detailFields);

    final MasterReport report = new MasterReport();
    report.setAttribute(AttributeNames.Wizard.NAMESPACE, "wizard-spec", wizardSpecification);

    final ProcessingContext processingContext = new DefaultProcessingContext();
    final DefaultFlowController flowController = new DefaultFlowController
        (processingContext, report.getDataSchemaDefinition(), new ReportParameterValues(),
            new NoOpPerformanceMonitorContext());

    final WizardProcessor processor = new WizardProcessor();
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.function.ProcessingContext

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.