Package ar.com.fdvs.dj.core

Examples of ar.com.fdvs.dj.core.DJException


//    else if (chartType ==  DJChart.LINE_CHART) {
//      dataSet = createLineDataset(group,parentGroup, vars, djchart);
//    }

    if (dataSet == null){
      throw new DJException("Error creating dataset for chart, no valid dataset type.");
    }

    return dataSet;
  }
View Full Code Here


    if (dsCandidate.getClass().isArray())
      return new JRBeanArrayDataSource((Object[]) dsCandidate);


    throw new DJException("class " + dsCandidate.getClass().getName() + " is not supported " +
        "from the DynamicJasper WebWorK result type. Provide a JRDataSource implementation instead");
  }
View Full Code Here

    if (dsCandidate.getClass().isArray())
      return new JRBeanArrayDataSource((Object[]) dsCandidate);


    throw new DJException("class " + dsCandidate.getClass().getName() + " is not supported " +
        "from the DynamicJasper WebWorK result type. Provide a JRDataSource implementation instead");
  }
View Full Code Here

            JRDesignStyle groupStyle = new JRDesignStyle();
            try {
              if (jrstyle != null)
                BeanUtils.copyProperties(groupStyle, jrstyle);
      } catch (Exception e) {
        throw new DJException("Could not copy properties for shared group style: " + e.getMessage(),e);
      }

      groupStyle.setName(groupStyle.getFontName() +"_for_group_"+index);
      textField.setStyle(groupStyle);
      try {
View Full Code Here

      jrGroupChart = (JRDesignGroup) BeanUtils.cloneBean(parentGroup);
      jrGroupChart.setGroupFooter( new JRDesignBand());
      jrGroupChart.setGroupHeader( new JRDesignBand());
      jrGroupChart.setName(jrGroupChart.getName()+"_Chart" + getReport().getCharts().indexOf(djChart));
    } catch (Exception e) {
      throw new DJException("Problem creating band for chart: " + e.getMessage(),e);
    }

    //Charts should be added in its own band (to ensure page break, etc)
    //To achieve that, we create a group and insert it right before to the criteria group.
    //I need to find parent group of the criteria group, clone and insert after.
View Full Code Here


      Class clazz = null;
      try { clazz = Class.forName(col.getValueClassNameForExpression());
      } catch (ClassNotFoundException e) {
        throw new DJException("Exeption creating chart variable: " + e.getMessage(),e);
      }

      JRDesignExpression expression = new JRDesignExpression();
      //FIXME Only PropertyColumn allowed?
      expression.setText("$F{" + ((PropertyColumn) col).getColumnProperty().getProperty()  + "}");
View Full Code Here

      jrGroupChart = (JRDesignGroup) BeanUtils.cloneBean(parentGroup);
      jrGroupChart.setGroupFooter( new JRDesignBand());
      jrGroupChart.setGroupHeader( new JRDesignBand());
      jrGroupChart.setName(jrGroupChart.getName()+"_Chart" + getReport().getCharts().indexOf(djChart));
    } catch (Exception e) {
      throw new DJException("Problem creating band for chart: " + e.getMessage(),e);
    }

    //Charts should be added in its own band (to ensure page break, etc)
    //To achieve that, we create a group and insert it right before to the criteria group.
    //I need to find parent group of the criteria group, clone and insert after.
View Full Code Here


      Class clazz = null;
      try { clazz = Class.forName(col.getValueClassNameForExpression());
      } catch (ClassNotFoundException e) {
        throw new DJException("Exeption creating chart variable: " + e.getMessage(),e);
      }

      JRDesignExpression expression = new JRDesignExpression();
      //FIXME Only PropertyColumn allowed?
      expression.setText("$F{" + ((PropertyColumn) col).getColumnProperty().getProperty()  + "}");
View Full Code Here

  public static void copyProperties(Object dest, Object orig){
        try {
          if (orig != null)
            BeanUtils.copyProperties(dest, orig);
    } catch (Exception e) {
      throw new DJException("Could not copy properties for shared object: " + orig +", message: " + e.getMessage(),e);
    }   
  }
View Full Code Here

                  }
                 
              }             
      }
    } catch (Exception e) {
      throw new DJException("Could not copy properties for shared object: " + orig +", message: " + e.getMessage(),e);
    }   
  }
View Full Code Here

TOP

Related Classes of ar.com.fdvs.dj.core.DJException

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.