Package ar.com.fdvs.dj.domain

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


   * @param String valueClassName
   * @return ColumnBuilder
   * @deprecated
   */
  public ColumnBuilder addColumnProperty(String propertyName, String valueClassName ){
    ColumnProperty columnProperty = new ColumnProperty(propertyName,valueClassName);
    this.columnProperty = columnProperty;
    return this;
  }
View Full Code Here


    ColumnProperty columnProperty = new ColumnProperty(propertyName,valueClassName);
    this.columnProperty = columnProperty;
    return this;
  }
  public ColumnBuilder setColumnProperty(String propertyName, String valueClassName ){
    ColumnProperty columnProperty = new ColumnProperty(propertyName,valueClassName);
    this.columnProperty = columnProperty;
    return this;
  }
View Full Code Here

  public ColumnBuilder setFieldDescription(String fieldDescription){
    this.fieldDescription = fieldDescription;
    return this;
  }
  public ColumnBuilder setColumnProperty(String propertyName, String valueClassName, String fieldDescription ){
    ColumnProperty columnProperty = new ColumnProperty(propertyName,valueClassName);
    this.columnProperty = columnProperty;
    this.fieldDescription = fieldDescription;
    return this;
  }
View Full Code Here

    this.imageScaleMode = imageScaleMode;
    return this;
  }

  public ColumnBuilder setCommonProperties(String title, String property, String className, int width, boolean fixedWidth) throws ColumnBuilderException, ClassNotFoundException {
    setColumnProperty(new ColumnProperty(property, className));
    setWidth(new Integer(width));
    setTitle(title);
    setFixedWidth(Boolean.valueOf(fixedWidth));
    return this;
  }
View Full Code Here

        if (entity instanceof ExpressionColumn) {
          //The Custom Expression parameter must be registered
          ExpressionColumn expressionColumn = (ExpressionColumn) entity;
          ArrayList l = new ArrayList(getColumns());
          for (Iterator iter = getDynamicReport().getFields().iterator(); iter.hasNext();) {
            ColumnProperty columnProperty = (ColumnProperty) iter.next();
            SimpleColumn simpleColumn = new SimpleColumn();
            simpleColumn.setColumnProperty(columnProperty);
            l.add(simpleColumn);

          }
View Full Code Here

* Column created to handle global variables.
*/
public class GlobalGroupColumn extends PropertyColumn {

  public GlobalGroupColumn() {
    ColumnProperty columnProperty = new ColumnProperty("global", String.class.getName());
    setTitle("global");
    setColumnProperty(columnProperty);
  }
View Full Code Here

    setTitle("global");
    setColumnProperty(columnProperty);
  }

  public GlobalGroupColumn(String name) {
    ColumnProperty columnProperty = new ColumnProperty(name, String.class.getName());
    setTitle("global");
    setColumnProperty(columnProperty);
  }
View Full Code Here

//    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

   * @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

//    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

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.