Examples of JRDesignExpression


Examples of net.sf.jasperreports.engine.design.JRDesignExpression

  /**
   *
   */
  public static class IntegerExpressionFactory extends JRBaseFactory {
    public Object createObject( Attributes attrs ){
      JRDesignExpression expression = new JRDesignExpression();
      expression.setValueClassName( Integer.class.getName() );
      return expression;
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.design.JRDesignExpression

  /**
   *
   */
  public static class DoubleExpressionFactory extends JRBaseFactory {
    public Object createObject( Attributes attrs ){
      JRDesignExpression expression = new JRDesignExpression();
      expression.setValueClassName( Double.class.getName() );
      return expression;
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.design.JRDesignExpression

  /**
   *
   */
  public static class NumberExpressionFactory extends JRBaseFactory {
    public Object createObject( Attributes attrs ){
      JRDesignExpression expression = new JRDesignExpression();
      expression.setValueClassName( Number.class.getName() );
      return expression;
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.design.JRDesignExpression

  /**
   *
   */
  public static class BooleanExpressionFactory extends JRBaseFactory {
    public Object createObject( Attributes attrs ){
      JRDesignExpression expression = new JRDesignExpression();
      expression.setValueClassName( Boolean.class.getName() );
      return expression;
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.design.JRDesignExpression

  /**
   *
   */
  public static class MapExpressionFactory extends JRBaseFactory {
    public Object createObject( Attributes attrs ){
      JRDesignExpression expression = new JRDesignExpression();
      expression.setValueClassName( Map.class.getName() );
      return expression;
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.design.JRDesignExpression

  public static class ComparatorExpressionFactory extends JRBaseFactory
  {
    public Object createObject(Attributes attrs)
    {
      JRDesignExpression expression = new JRDesignExpression();
      expression.setValueClassName(Comparator.class.getName());
      return expression;
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.design.JRDesignExpression

      this(defaultValueClass == null ? null : defaultValueClass.getName());
    }

    public Object createObject(Attributes attrs)
    {
      JRDesignExpression expression = new JRDesignExpression();
      String className = attrs.getValue(JRXmlConstants.ATTRIBUTE_class);
      if (className != null)
      {
        expression.setValueClassName(className);
      }
      else if (defaultValueClass != null)
      {
        expression.setValueClassName(defaultValueClass);
      }
      return expression;
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.design.JRDesignExpression

   */
  public Object createObject(Attributes atts)
  {
    JRDesignParameter parameter = (JRDesignParameter)digester.peek();

    JRDesignExpression expression = new JRDesignExpression();
    expression.setValueClassName(parameter.getValueClassName());

    return expression;
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.design.JRDesignExpression

public class JRStringExpressionFactory extends JRBaseFactory
{

  public Object createObject(Attributes atts)
  {
    JRDesignExpression expression = new JRDesignExpression();

    String className = atts.getValue(JRXmlConstants.ATTRIBUTE_class);
    if (className == null)
    {
      expression.setValueClass(java.lang.String.class);
    }
    else
    {
      expression.setValueClassName(className);
    }

    return expression;
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.design.JRDesignExpression

   */
  public Object createObject(Attributes atts)
  {
    JRDesignVariable variable = (JRDesignVariable)digester.peek();

    JRDesignExpression expression = new JRDesignExpression();
    if (
      variable.getCalculationValue() == CalculationEnum.COUNT
      || variable.getCalculationValue() == CalculationEnum.DISTINCT_COUNT
      )
    {
      expression.setValueClassName(java.lang.Object.class.getName());
    }
    else
    {
      expression.setValueClassName(variable.getValueClassName());
    }

    return expression;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.