Package net.sf.jasperreports.engine.design

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


{
  public static final String ATTRIBUTE_class = "class";
 
  public Object createObject(Attributes attributes)
  {
    JRDesignExpression expression = new JRDesignExpression();
    expression.setValueClassName(attributes.getValue(ATTRIBUTE_class));

    return expression;
  }
View Full Code Here


{
  public Object createObject(Attributes attributes)
  {
    JRDesignCrosstabMeasure measure = (JRDesignCrosstabMeasure) digester.peek();

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

    return expression;
  }
View Full Code Here

    footerFrame.getLineBox().getPen().setLineWidth(0f);
    footerFrame.setRemoveLineWhenBlank(true);
   
    // we only need an empty expression object here
    // the evaluation logic is separate
    JRDesignExpression footerPrintWhen = new JRDesignExpression();
    builtinEvaluators.put(footerPrintWhen, new SummaryGroupFooterPrintWhenEvaluator());
    footerFrame.setPrintWhenExpression(footerPrintWhen);
   
    // clone the contents of the page footer in the frame
    List footerElements = pageFooter.getChildren();
View Full Code Here

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

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

    return expression;
  }
View Full Code Here

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

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

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

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

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

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

TOP

Related Classes of net.sf.jasperreports.engine.design.JRDesignExpression

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.