Package ar.com.fdvs.dj.domain

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


    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


        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

  }

  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: " + 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);
    int random = new Random().nextInt();
    column.setColumnProperty(new ColumnProperty("expressionColumn" + random,CustomExpression.class.getName()));
    column.setExpression(customExpression);
    column.setExpressionToGroupBy(customExpressionToGroupBy);
//    column.getFieldProperties().putAll(fieldProperties);
    return column;
  }
View Full Code Here

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

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

* 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

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.