Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRConditionalStyle


    JRConditionalStyle[] conditionalStyles = style.getConditionalStyles();
    if (conditionalStyles != null && conditionalStyles.length > 0)
    {
      for (int j = 0; j < conditionalStyles.length; j++)
      {
        JRConditionalStyle conditionalStyle = conditionalStyles[j];
        Boolean expressionValue =
          (Boolean) expressionEvaluator.evaluate(
            conditionalStyle.getConditionExpression(),
            evaluation
            );
       
        boolean condition;
        if (expressionValue == null)
View Full Code Here


    if (conditionalStylesList != null)
    {
      clone.conditionalStylesList = new ArrayList(conditionalStylesList.size());
      for (Iterator it = conditionalStylesList.iterator(); it.hasNext();)
      {
        JRConditionalStyle style = (JRConditionalStyle) it.next();
        JRConditionalStyle styleClone = (JRConditionalStyle) style.clone();
        clone.conditionalStylesList.add(styleClone);
      }
    }
   
    return clone;
View Full Code Here

      if (conditionalStyles != null)
      {
        clone.conditionalStyles = new JRConditionalStyle[conditionalStyles.length];
        for (int i = 0; i < conditionalStyles.length; i++)
        {
          JRConditionalStyle style = conditionalStyles[i];
          JRConditionalStyle styleClone = (JRConditionalStyle) style.clone();
          clone.conditionalStyles[i] = styleClone;
        }
      }
     
      return clone;
View Full Code Here

    JRConditionalStyle[] condStyles = style.getConditionalStyles();
    if (condStyles != null && condStyles.length > 0)
    {
      for(int index = 0; index < condStyles.length; index++)
      {
        JRConditionalStyle condStyle = condStyles[index];

        if (log.isWarnEnabled())
        {
          if (condStyle.getName() != null)
          {
            log.warn("Conditional style should not have a name.");
          }

          if (condStyle.isDefault())
          {
            log.warn("Conditional style can't be the default style.");
          }
        }
      }
View Full Code Here

TOP

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

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.