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

Examples of org.pentaho.reporting.engine.classic.core.layout.output.DefaultProcessingContext


      }
      else
      {
        expressionRuntime = new GenericExpressionRuntime
            (new CompoundDataRow(staticDataRow, createDataRow(entries)),
                new DefaultTableModel(), -1, new DefaultProcessingContext());
      }


      final String formula = computeFormula(configIndicator);
      final Formula compiledFormula = new Formula(formula);
View Full Code Here


    final PageFormatFactory fmFactory = PageFormatFactory.getInstance();
    final PageFormat pageFormat = new PageFormat();
    pageFormat.setPaper(fmFactory.createPaper((double) sequence.getPageWidth(), 1000d));

    final SimplePageDefinition pageDefinition = new SimplePageDefinition(pageFormat);
    final ProcessingContext processingContext = new DefaultProcessingContext();
    final DebugExpressionRuntime runtime = new DebugExpressionRuntime(new DefaultTableModel(), 0, processingContext);

    final TableDebugOutputProcessor outputProcessor = new TableDebugOutputProcessor(metaData);
    final TableDebugRenderer flowRenderer = new TableDebugRenderer(outputProcessor);
    final MasterReport report = new MasterReport();
View Full Code Here

    this.dataFactory = parameterContext.getDataFactory();
    this.model = new EmptyTableModel();
    this.dataSchema = new DefaultDataSchema();
    this.dataRow = dataRow;
    this.processingContext = new DefaultProcessingContext
        (parameterContext.getResourceBundleFactory(),
            parameterContext.getConfiguration(),
            parameterContext.getResourceManager(),
            parameterContext.getContentBase(),
            parameterContext.getDocumentMetaData(),
View Full Code Here

  {
    assertTrue(DataRow.class.isAssignableFrom(DataRowConnector.class));
    final BSHExpression ex = new BSHExpression();
    ex.setExpression("");

    final DefaultProcessingContext processingContext = new DefaultProcessingContext();

    ex.setRuntime(new DebugExpressionRuntime
        (new DefaultTableModel(), 0, processingContext));
    ex.getValue();
  }
View Full Code Here

  }

  public static SubReport materialize(final SubReport report,
                                      final WizardProcessor processor) throws ReportProcessingException
  {
    final DefaultProcessingContext processingContext;
    final MasterReport masterReport = DesignTimeUtil.getMasterReport(report);
    if (masterReport != null)
    {
      processingContext = new DefaultProcessingContext(masterReport);
    }
    else
    {
      processingContext = new DefaultProcessingContext();
    }

    final DataSchemaDefinition definition = report.getDataSchemaDefinition();
    final DefaultFlowController flowController = new DefaultFlowController(processingContext,
        definition, StateUtilities.computeParameterValueSet(report), null, false);
    final CachingDataFactory dataFactory = new CachingDataFactory(report.getDataFactory(), isCacheEnabled(report));
    dataFactory.initialize(processingContext.getConfiguration(), processingContext.getResourceManager(),
        DesignTimeUtil.getContextKey(report), processingContext.getResourceBundleFactory());
    dataFactory.open();

    try
    {
      final DefaultFlowController postQueryFlowController = flowController.performQuery
View Full Code Here


  public static MasterReport materialize(final MasterReport report,
                                         final WizardProcessor processor) throws ReportProcessingException
  {
    final DefaultProcessingContext processingContext = new DefaultProcessingContext(report);
    final DataSchemaDefinition definition = report.getDataSchemaDefinition();
    final DefaultFlowController flowController = new DefaultFlowController(processingContext,
        definition, StateUtilities.computeParameterValueSet(report),
        report.getParameterDefinition().getParameterDefinitions(), false);
    final CachingDataFactory dataFactory = new CachingDataFactory(report.getDataFactory(), isCacheEnabled(report));
    dataFactory.initialize(processingContext.getConfiguration(), processingContext.getResourceManager(),
        processingContext.getContentBase(), processingContext.getResourceBundleFactory());
    dataFactory.open();

    try
    {
      final DefaultFlowController postQueryFlowController = flowController.performQuery
View Full Code Here

{
  public static void testLineBreak() throws Exception
  {
    ClassicEngineBoot.getInstance().start();

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

    final URL target = LineBreakTest.class.getResource("linebreak-test.xml"); //$NON-NLS-1$
    final ResourceManager rm = new ResourceManager();
    rm.registerDefaults();
View Full Code Here

    {
      throw new IllegalStateException("Expected Size of 4 but got " + specification.size());
    }

    // second run. Now with padding ..
    final ProcessingContext prc = new DefaultProcessingContext();
    final GlobalMasterRow gmr = GlobalMasterRow.createReportRow
        (prc, new DefaultDataSchemaDefinition(), new ParameterDataRow(), null, false);
    final TableModel data = createTableModel();
    MasterDataRow wdata = gmr.deriveWithQueryData(new ReportDataRow(data));
    int advanceCount = 0;
View Full Code Here

  }

  private static CrosstabSpecification buildCS()
  {
    final ProcessingContext prc = new DefaultProcessingContext();
    final GlobalMasterRow gmr = GlobalMasterRow.createReportRow
        (prc, new DefaultDataSchemaDefinition(), new ParameterDataRow(), null, false);
    final TableModel data = createTableModel();
    MasterDataRow wdata = gmr.deriveWithQueryData(new ReportDataRow(data));
    final CrosstabSpecification cs = new SortedMergeCrosstabSpecification
View Full Code Here

      else
      {
        if (FORMULA_VALUE_ROLE.equals(valueRole) && isFormulaFragment())
        {
          final GenericExpressionRuntime expressionRuntime = new GenericExpressionRuntime
              (new StaticDataRow(), new DefaultTableModel(), -1, new DefaultProcessingContext());
          final String formulaText = FormulaUtil.createEditorTextFromFormula
              (String.valueOf(value), new ReportFormulaContext(new DefaultFormulaContext(), expressionRuntime));
          textField.setText(formulaText);
          comboBox.setSelectedItem(formulaText);
        }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.layout.output.DefaultProcessingContext

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.