Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRExpression


      if (vars.size() > 1)
        var1 = (JRDesignVariable) vars.get(1);
     
      //And use it as value for each bar
      JRDesignExpression varExp = getExpressionFromVariable(var);
      JRExpression varExp1 = var1.getExpression();
      serie.setValueExpression(varExp);
 
      //The key for each bar
      JRExpression exp2 = group.getExpression();
 
      JRDesignExpression exp3 = new JRDesignExpression();
      int index = vars.indexOf(var);
      AbstractColumn col = (AbstractColumn) djchart.getColumns().get(index);
      exp3.setText("\"" + col.getTitle() + "\"");
View Full Code Here


      //And use it as value for each bar
      JRDesignExpression varExp = getExpressionFromVariable(var);
      serie.setValueExpression(varExp);
 
      //The key for each bar
      JRExpression exp2 = group.getExpression();
 
      JRDesignExpression exp3 = new JRDesignExpression();
      int index = vars.indexOf(var);
      AbstractColumn col = (AbstractColumn) djchart.getColumns().get(index);
      exp3.setText("\"" + col.getTitle() + "\"");
View Full Code Here

      //And use it as value for each bar
      JRDesignExpression varExp = getExpressionFromVariable((JRDesignVariable) vars.get(column));
      serie.setValueExpression(varExp);
 
      //The key for each bar
      JRExpression exp2 = group.getExpression();
 
      JRDesignExpression exp3;
      if (seriesLabels.containsKey(column)) {
        exp3 = ExpressionUtils.createAndRegisterExpression(design, "dataset_" + column.getName() + "_" + name, (CustomExpression) seriesLabels.get(column));
      }
View Full Code Here

      //And use it as value for each bar
      JRDesignExpression varExp = getExpressionFromVariable((JRDesignVariable) vars.get(column));
      serie.setValueExpression(varExp);
 
      //The key for each bar
      JRExpression exp2 = group.getExpression();     
      serie.setKeyExpression(exp2);
       
      data.addPieSeries(serie);
    }
   
View Full Code Here

      subreport.setParametersMapExpression(ExpressionUtils.getParameterExpression(sr));
      for (Iterator subreportParamsIter = sr.getParameters().iterator(); subreportParamsIter.hasNext();) {
        SubreportParameter srparam = (SubreportParameter) subreportParamsIter.next();
        JRDesignSubreportParameter subreportParameter = new JRDesignSubreportParameter();
        subreportParameter.setName(srparam.getName());
        JRExpression expression2 = ExpressionUtils.createExpression(getDesign(), srparam);
        subreportParameter.setExpression(expression2);
        try {
          subreport.addParameter(subreportParameter );
        } catch (JRException e) {
          log.error("Error registering parameter for subreport, there must be another parameter with the same name");
View Full Code Here

      subreport.setParametersMapExpression(ExpressionUtils.getParameterExpression(sr));
      for (Iterator subreportParamsIter = sr.getParameters().iterator(); subreportParamsIter.hasNext();) {
        SubreportParameter srparam = (SubreportParameter) subreportParamsIter.next();
        JRDesignSubreportParameter subreportParameter = new JRDesignSubreportParameter();
        subreportParameter.setName(srparam.getName());
        JRExpression expression2 = ExpressionUtils.createExpression(getDesign(), srparam);
        subreportParameter.setExpression(expression2);
        try {
          subreport.addParameter(subreportParameter );
        } catch (JRException e) {
          log.error("Error registering parameter for subreport, there must be another parameter with the same name");
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.JRExpression

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.