Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRSubreportParameter


      JRSubreportParameter[] parameters = subreport.getParameters();
      if (parameters != null && parameters.length > 0)
      {
        for(int index = 0; index < parameters.length; index++)
        {
          JRSubreportParameter parameter = parameters[index];

          if (parameter.getName() == null || parameter.getName().trim().length() == 0)
          {
            addBrokenRule("Subreport parameter name missing.", expression);
          }

          expression = parameter.getExpression();

          if (expression != null)
          {
            try
            {
              Class clazz = expression.getValueClass();
              if (clazz == null)
              {
                addBrokenRule("Class not set for subreport parameter expression : " + parameter.getName() + ". Use java.lang.Object class.", expression);
              }
            }
            catch (JRRuntimeException e)
            {
              addBrokenRule(e, expression);
View Full Code Here


  /**
   *
   */
  public JRSubreportParameter removeParameter(String name)
  {
    JRSubreportParameter removed = (JRSubreportParameter)this.parametersMap.remove(name);
    if (removed != null)
    {
      getEventSupport().fireCollectionElementRemovedEvent(PROPERTY_PARAMETERS, removed, -1);
    }
    return removed;
View Full Code Here

    {
      clone.parametersMap = new LinkedHashMap();
      for(Iterator it = parametersMap.keySet().iterator(); it.hasNext();)
      {
        String key = (String)it.next();
        JRSubreportParameter parameter = (JRSubreportParameter)parametersMap.get(key);
        clone.parametersMap.put(key, parameter.clone());
      }
    }

    if (returnValues != null)
    {
View Full Code Here

TOP

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

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.