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

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


  };

  public FormulaPieURLGenerator(final ExpressionRuntime runtime,
                                final String formula)
  {
    this.runtime = new GenericExpressionRuntime(runtime);
    this.formulaExpression = new FormulaExpression();
    this.formulaExpression.setFormula(formula);
  }
View Full Code Here


        final ReportFormulaContext rfc = (ReportFormulaContext) formulaContext;
        expressionRuntime = new WrapperExpressionRuntime(staticDataRow, rfc.getRuntime());
      }
      else
      {
        expressionRuntime = new GenericExpressionRuntime
            (new CompoundDataRow(staticDataRow, createDataRow(entries)),
                new DefaultTableModel(), -1, new DefaultProcessingContext());
      }

View Full Code Here

      return;
    }

    if (isFormulaFragment())
    {
      final GenericExpressionRuntime expressionRuntime = new GenericExpressionRuntime
          (new StaticDataRow(), new DefaultTableModel(), -1, new DefaultProcessingContext());
      final String formulaText = FormulaUtil.createEditorTextFromFormula
          (text, new ReportFormulaContext(new DefaultFormulaContext(), expressionRuntime));
      formulaField.setText(formulaText);
      formulaBox.setSelectedItem(formulaText);
View Full Code Here

      return;
    }

    if (isFormulaFragment())
    {
      final GenericExpressionRuntime expressionRuntime = new GenericExpressionRuntime
          (new StaticDataRow(), new DefaultTableModel(), -1, new DefaultProcessingContext());
      final String formulaText = FormulaUtil.createEditorTextFromFormula
          (text, new ReportFormulaContext(new DefaultFormulaContext(), expressionRuntime));
      formulaField.setText(formulaText);
      formulaBox.setSelectedItem(formulaText);
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.function.GenericExpressionRuntime

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.