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, Style style, Style headerStyle) throws ColumnBuilderException, ClassNotFoundException {
      AbstractColumn column = ColumnBuilder.getInstance()
      .setColumnProperty(new ColumnProperty(property, className))
      .setWidth(new Integer(width))
      .setTitle(title)
      .build();
     
      if (style != null)
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

  }

  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

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

* @param className
* @return
*/

  public CrosstabRowBuilder setProperty(String property, String className){
    row.setProperty(new ColumnProperty(property,className));
    return this;
  }
View Full Code Here

  public DJCrosstabColumn build(){
    return this.column;
  }

  public CrosstabColumnBuilder setProperty(String property, String className){
    column.setProperty(new ColumnProperty(property,className));
    return this;
  }
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.