Package ar.com.fdvs.dj.domain.entities.columns

Examples of ar.com.fdvs.dj.domain.entities.columns.PropertyColumn


  /**
   * 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));
    }
View Full Code Here


      }     
    }
  }
 
  private DJGroup getChartColumnsGroup(ar.com.fdvs.dj.domain.chart.DJChart djChart) {
    PropertyColumn columnsGroup = djChart.getDataset().getColumnsGroup();
    for (Iterator iterator = report.getColumnsGroups().iterator(); iterator.hasNext();) {
      DJGroup djGroup = (DJGroup) iterator.next();     
      if (djGroup.getColumnToGroupBy() == columnsGroup)
        return djGroup;   
    }
View Full Code Here

    }
    return vars;
  }

  protected JRDesignGroup getChartColumnsGroup(ar.com.fdvs.dj.domain.chart.DJChart djChart) {
    PropertyColumn columnsGroup = djChart.getDataset().getColumnsGroup();
    for (Iterator iterator = getReport().getColumnsGroups().iterator(); iterator.hasNext();) {
      DJGroup djGroup = (DJGroup) iterator.next();     
      if (djGroup.getColumnToGroupBy() == columnsGroup)
        return getJRGroupFromDJGroup(djGroup);   
    }
View Full Code Here

  public FastReportBuilder addGroups(int numgroups) {
    groupCount = numgroups;
    for (int i = 0; i < groupCount; i++) {
      GroupBuilder gb = new GroupBuilder();
      PropertyColumn col = (PropertyColumn) report.getColumns().get(i);
      gb.setCriteriaColumn(col);
      report.getColumnsGroups().add(gb.build());
    }
    return this;
  }
View Full Code Here

  public FastReportBuilder addGroups(int numgroups, GroupLayout gLayout) {
    groupCount = numgroups;
    for (int i = 0; i < groupCount; i++) {
      GroupBuilder gb = new GroupBuilder();
      PropertyColumn col = (PropertyColumn) report.getColumns().get(i);
      gb.setCriteriaColumn(col);
      gb.setGroupLayout(gLayout);
      report.getColumnsGroups().add(gb.build());
    }
    return this;
View Full Code Here

    group.setLayout(layout);
    return this;
  }

  public FastReportBuilder addGlobalHeaderVariable(int colNumber, DJCalculation op, Style style) {
    PropertyColumn column = (PropertyColumn) report.getColumns().get(colNumber -1);
//    if (this.globalHeaderVariables == null)
//      this.globalHeaderVariables = new ArrayList();
    if (style == null)
      style = numberStyle; //XXX Carefree style assignment
//    this.globalHeaderVariables.add(new DJGroupVariable(column, op, style));
View Full Code Here

    return this;
  }

  public FastReportBuilder addHeaderVariable(int groupNum, int colNumber, DJCalculation op, Style style) throws BuilderException {
    DJGroup group = getGroupByNumber(groupNum);
    PropertyColumn column = (PropertyColumn) report.getColumns().get(colNumber -1);
    if (style == null)
      style = numberStyle;

    DJGroupVariable columnsGroupVariable = new DJGroupVariable(column, op, style);
    group.addHeaderVariable(columnsGroupVariable);
View Full Code Here

   * @param op
   * @param style OPTIONAL, may be null
   * @return
   */
  public FastReportBuilder addGlobalFooterVariable(int colNumber, DJCalculation op, Style style) {
    PropertyColumn column = (PropertyColumn) report.getColumns().get(colNumber -1);

    if (style == null)
      style = numberStyle;

    this.globalVariablesGroup.addFooterVariable(new DJGroupVariable(column, op, style));
View Full Code Here

   * @return
   * @throws BuilderException
   */
  public FastReportBuilder addFooterVariable(int groupNum, int colNumber, DJCalculation op, Style style) throws BuilderException {
    DJGroup group = getGroupByNumber(groupNum);
    PropertyColumn column = (PropertyColumn) report.getColumns().get(colNumber -1);
    if (style == null)
      style = numberStyle;

    DJGroupVariable columnsGroupVariable = new DJGroupVariable(column, op, style);
    group.addFooterVariable(columnsGroupVariable);
View Full Code Here

   * @return
   * @throws BuilderException
   */
  public FastReportBuilder addFooterVariable(int groupNum, int colNumber, DJCalculation op, Style style, DJValueFormatter valueFormatter) throws BuilderException {
    DJGroup group = getGroupByNumber(groupNum);
    PropertyColumn column = (PropertyColumn) report.getColumns().get(colNumber -1);
    if (style == null)
      style = numberStyle;
   
    DJGroupVariable columnsGroupVariable = new DJGroupVariable(column, op, style, valueFormatter);
    group.addFooterVariable(columnsGroupVariable);
View Full Code Here

TOP

Related Classes of ar.com.fdvs.dj.domain.entities.columns.PropertyColumn

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.