Package ar.com.fdvs.dj.domain

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


   
    String valueClassName = null;
    String initialExpression = null;

    if (columnsGroupVariable.getColumnProperty() != null) { //A variable that operates over a FIELD
      ColumnProperty prop = columnsGroupVariable.getColumnProperty();
     
      expression.setText("$F{" + prop.getProperty() + "}");
      expression.setValueClassName(prop.getValueClassName());
      registerField(prop);
     
      valueClassName = ExpressionUtils.getValueClassNameForOperation(op, prop);
      initialExpression = ExpressionUtils.getInitialValueExpressionForOperation(op,prop);
     
View Full Code Here


  }
 
 
  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

   * Receives a PropertyColumn and returns a JRDesignField
   */
  protected Object transformEntity(Entity entity) {
    PropertyColumn propertyColumn = (PropertyColumn) entity;
    JRDesignField field = new JRDesignField();
    ColumnProperty columnProperty = propertyColumn.getColumnProperty();
    field.setName(columnProperty.getProperty());
    field.setValueClassName(columnProperty.getValueClassName());
   
    log.debug("transforming column property: " + columnProperty.getProperty() + " (" + columnProperty.getValueClassName() +")");

    field.setDescription(propertyColumn.getFieldDescription()); //hack for XML data source
    Iterator iter = columnProperty.getFieldProperties().keySet().iterator();
    while (iter.hasNext()) {
      String key = (String) iter.next();
      field.getPropertiesMap().setProperty(key, (String) columnProperty.getFieldProperties().get(key));
    }
    return field;
  }
View Full Code Here

   */
  protected AbstractColumn buildExpressionColumn() {
    ExpressionColumn column = new ExpressionColumn();
    populateCommonAttributes(column);
    long random_ = Math.abs(random.nextLong());
    column.setColumnProperty(new ColumnProperty("expressionColumn_" + random_,CustomExpression.class.getName()));
    column.setExpression(customExpression);
    column.setExpressionToGroupBy(customExpressionToGroupBy);
    column.setExpressionForCalculation(customExpressionForCalculation);
//    column.getFieldProperties().putAll(fieldProperties);
    return column;
View Full Code Here

   * @param ColumnProperty columnProperty : BeanUtils like syntax allowed here
   * @param String valueClassName
   * @return ColumnBuilder
   */
  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) {
    setColumnProperty(new ColumnProperty(property, className));
    setWidth(new Integer(width));
    setTitle(title);
    setFixedWidth(Boolean.valueOf(fixedWidth));
    return this;
  }
View Full Code Here

    setFixedWidth(Boolean.valueOf(fixedWidth));
    return this;
  }

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

    globalVariablesGroup.addVariable(new DJGroupVariableDef(name, prop, op));
    return this;
  }

  public DynamicReportBuilder addGlobalVariable(String name, String property, String className, DJCalculation op) {
    globalVariablesGroup.addVariable(new DJGroupVariableDef(name, new ColumnProperty(property, className), op));
    return this;
  }
View Full Code Here

   * @param name
   * @param className
   * @return
   */
  public DynamicReportBuilder addField(String name, String className) {
    return addField(new ColumnProperty(name,className));
  }
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.