Examples of JRFillParameter


Examples of net.sf.jasperreports.engine.fill.JRFillParameter

   * @return the parameter
   * @deprecated {@link #getValueParameter(String) getValueParameter(String)} should be used instead
   */
  protected JRFillParameter getParameter(String parameterName)
  {
    JRFillParameter parameter = (JRFillParameter) parametersMap.get(parameterName);
   
    if (parameter == null)
    {
      throw new JRRuntimeException("Parameter \"" + parameterName + "\" does not exist.");
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.fill.JRFillParameter

  /**
   *
   */
  public Object getParameterValue(String parameterName, boolean mustBeDeclared) throws JRScriptletException
  {
    JRFillParameter parameter = (JRFillParameter)this.parametersMap.get(parameterName);
    if (parameter == null)
    {
      if (mustBeDeclared)
      {
        throw new JRScriptletException("Parameter not found : " + parameterName);
      }
      return ((Map)((JRFillParameter)this.parametersMap.get(JRParameter.REPORT_PARAMETERS_MAP)).getValue()).get(parameterName);
    }
    return parameter.getValue();
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.fill.JRFillParameter

   
    for (Iterator it = parametersMap.entrySet().iterator(); it.hasNext();)
    {
      Map.Entry entry = (Map.Entry) it.next();
      String name = (String) entry.getKey();
      JRFillParameter param = (JRFillParameter) entry.getValue();
      JSParameter jsParam = new JSParameter(param, scope);
      scope.put(getParameterVar(name), scope, jsParam);
    }

    for (Iterator it = variablesMap.entrySet().iterator(); it.hasNext();)
View Full Code Here

Examples of net.sf.jasperreports.engine.fill.JRFillParameter

            labelValue=(String)labelValueO.getValue();
           
            // Set other parameters (only not system defined)
            for (Iterator iterator2 = allParameters.keySet().iterator(); iterator2.hasNext();) {
              String namePar = (String) iterator2.next();
              JRFillParameter par=(JRFillParameter)allParameters.get(namePar);
              if(!par.isSystemDefined() && par.getValue()!=null){
                Object val=par.getValue();
                chartParameters.put(namePar, val.toString());
              }
            }

            logger.debug("execute chart with lable "+labelValue);
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.