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

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


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


    {
      element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.FIELD, getFieldname());
    }
    if (getFormula() != null)
    {
      final FormulaExpression formulaExpression = new FormulaExpression();
      formulaExpression.setFormula(getFormula());
      element.setAttributeExpression(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, formulaExpression);
    }
    if (getNullValue() != null)
    {
      element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.NULL_VALUE, getNullValue());
View Full Code Here

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

      {
        element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.FIELD, getFieldname());
      }
      if (getFormula() != null)
      {
        final FormulaExpression formulaExpression = new FormulaExpression();
        formulaExpression.setFormula(getFormula());
        element.setAttributeExpression(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, formulaExpression);
      }
      if (format != null)
      {
        final DecimalFormat decimalFormat = (DecimalFormat) format;
View Full Code Here

      throw new NullPointerException();
    }

    this.expressionRuntime = new ComputedParameterExpressionRuntime(context, new TableDataRow(parent, valueColumn));

    final FormulaExpression expression = new FormulaExpression();
    expression.setFormula(valueFormula);
    this.formula = expression;
  }
View Full Code Here

    }

    this.field = null;
    if (valueExpression == null)
    {
      valueExpression = new FormulaExpression();
    }
    this.valueExpression.setFormula(formula);
    if ("field".equals(valueExpression.getFormulaNamespace()))
    {
      DataRowDataSource.logger.warn(
View Full Code Here

                                    final String formula,
                                    final ValidationResult result,
                                    final ParameterDefinitionEntry entry,
                                    final Object defaultValue)
  {
    final FormulaExpression fe = new FormulaExpression();
    fe.setFormula(formula);
    fe.setRuntime(runtime);
    final Object value = fe.getValue();
    if (value == null)
    {
      final Exception error = fe.getFormulaError();
      if (error != null)
      {
        if (result != null)
        {
          result.addError(entry.getName(),
View Full Code Here

    {
      element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.FIELD, getFieldname());
    }
    if (getFormula() != null)
    {
      final FormulaExpression formulaExpression = new FormulaExpression();
      formulaExpression.setFormula(getFormula());
      element.setAttributeExpression(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, formulaExpression);
    }

    element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.NULL_VALUE, getNullString());
    return element;
View Full Code Here

  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

  {
    this.groups = new ArrayList<String>();
    this.pageFunction = new PageFunction();
    this.indexSeparator = ".";
    this.model = new TypedTableModel();
    this.titleFormula = new FormulaExpression();
    this.dependencyLevel = LayoutProcess.LEVEL_COLLECT;
  }
View Full Code Here

TOP

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

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.