Package ar.com.fdvs.dj.domain

Examples of ar.com.fdvs.dj.domain.ColumnProperty


//    report.
  }

  private static void registerOtherFields(DynamicJasperDesign jd, List fields) {
    for (Iterator iter = fields.iterator(); iter.hasNext();) {
      ColumnProperty element = (ColumnProperty) iter.next();
      JRDesignField field = new JRDesignField();
      field.setValueClassName(element.getValueClassName());
      field.setName(element.getProperty());
      try {
        jd.addField(field);
      } catch (JRException e) {
//        e.printStackTrace();
        //if the field is already registered, it's not a problem
View Full Code Here


   * @param name
   * @param className
   * @return
   */
  public DynamicReportBuilder addField(String name, String className) {
    report.getFields().add(new ColumnProperty(name,className));
    return this;
  }
View Full Code Here

   * @return
   */
  public static String getFieldsMapExpression(Collection columnsAndFields) {
    StringBuffer fieldsMap = new StringBuffer("new  " + PropertiesMap.class.getName() + "()" );
    for (Iterator iter = columnsAndFields.iterator(); iter.hasNext();) {
      ColumnProperty columnProperty = (ColumnProperty) iter.next();

      if (columnProperty != null) {
        String propname = columnProperty.getProperty();
        fieldsMap.append(".with(\"" +  propname + "\",$F{" + propname + "})");
      }
    }

    return fieldsMap.toString();
View Full Code Here

   * @param name
   * @param className
   * @return
   */
  public DynamicReportBuilder addField(String name, String className) {
    report.getFields().add(new ColumnProperty(name,className));
    return this;
  }
View Full Code Here

    return super.build();
  }

    public FastReportBuilder addColumn(String title, String property, String className, int width, Style style) throws ColumnBuilderException, ClassNotFoundException {
    AbstractColumn column = ColumnBuilder.getInstance()
      .setColumnProperty(new ColumnProperty(property, className))
      .setWidth(new Integer(width))
      .setTitle(title)
      .build();

    column.setStyle(style);
View Full Code Here

    return this;
  }

    public FastReportBuilder addColumn(String title, String property, String className, int width) throws ColumnBuilderException, ClassNotFoundException {
    AbstractColumn column = ColumnBuilder.getInstance()
      .setColumnProperty(new ColumnProperty(property, className))
      .setWidth(new Integer(width))
      .setTitle(title)
      .build();

    guessStyle(className, column);
View Full Code Here

    return this;
  }

  public FastReportBuilder addColumn(String title, String property, String className, int width, boolean fixedWidth, String pattern) throws ColumnBuilderException, ClassNotFoundException {
    AbstractColumn column = ColumnBuilder.getInstance()
    .setColumnProperty(new ColumnProperty(property, className))
    .setWidth(new Integer(width))
    .setTitle(title)
    .setFixedWidth(Boolean.valueOf(fixedWidth))
    .setPattern(pattern)
    .build();
View Full Code Here

    return this;
  }

  public FastReportBuilder addColumn(String title, String property, String className, int width, boolean fixedWidth, String pattern, Style style) throws ColumnBuilderException, ClassNotFoundException {
    AbstractColumn column = ColumnBuilder.getInstance()
    .setColumnProperty(new ColumnProperty(property, className))
    .setWidth(new Integer(width))
    .setTitle(title)
    .setFixedWidth(Boolean.valueOf(fixedWidth))
    .setPattern(pattern)
    .setStyle(style)
View Full Code Here

    return this;
  }
 
  public FastReportBuilder addColumn(String title, String property, String className, int width, boolean fixedWidth, String pattern, Style style, String fieldDescription) throws ColumnBuilderException, ClassNotFoundException {
    AbstractColumn column = ColumnBuilder.getInstance()
    .setColumnProperty(new ColumnProperty(property, className))
    .setWidth(new Integer(width))
    .setTitle(title)
    .setFixedWidth(Boolean.valueOf(fixedWidth))
    .setPattern(pattern)
    .setStyle(style)
View Full Code Here

   */
  private AbstractColumn buildExpressionColumn() {
    ExpressionColumn column = new ExpressionColumn();
    populateCommonAttributes(column);
    int random = new Random().nextInt();
    column.setColumnProperty(new ColumnProperty("expressionColumn" + random,CustomExpression.class.getName()));
    column.setExpression(customExpression);
    column.setExpressionToGroupBy(customExpressionToGroupBy);
    return column;
  }
View Full Code Here

TOP

Related Classes of ar.com.fdvs.dj.domain.ColumnProperty

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.