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

Examples of ar.com.fdvs.dj.domain.entities.ColumnsGroupVariable


  }

  public DynamicReportBuilder addGlobalFooterVariable(AbstractColumn col, ColumnsGroupVariableOperation op, Style style) {
    if (this.globalFooterVariables == null)
      this.globalFooterVariables = new ArrayList();
    this.globalFooterVariables.add(new ColumnsGroupVariable(col, op, style));
    return this;
  }
View Full Code Here


   * @return
   */
  public DynamicReportBuilder addGlobalHeaderVariable(AbstractColumn col, ColumnsGroupVariableOperation op) {
    if (this.globalHeaderVariables == null)
      this.globalHeaderVariables = new ArrayList();
    this.globalHeaderVariables.add(new ColumnsGroupVariable(col, op));
    return this;
  }
View Full Code Here

  }

  public DynamicReportBuilder addGlobalHeaderVariable(AbstractColumn col, ColumnsGroupVariableOperation op, Style style) {
    if (this.globalHeaderVariables == null)
      this.globalHeaderVariables = new ArrayList();
    this.globalHeaderVariables.add(new ColumnsGroupVariable(col, op, style));
    return this;
  }
View Full Code Here

   * @return
   */
  public DynamicReportBuilder addGlobalFooterVariable(AbstractColumn col, ColumnsGroupVariableOperation op) {
    if (this.globalFooterVariables == null)
      this.globalFooterVariables = new ArrayList();
    this.globalFooterVariables.add(new ColumnsGroupVariable(col, op));
    return this;
  }
View Full Code Here

  }

  public DynamicReportBuilder addGlobalFooterVariable(AbstractColumn col, ColumnsGroupVariableOperation op, Style style) {
    if (this.globalFooterVariables == null)
      this.globalFooterVariables = new ArrayList();
    this.globalFooterVariables.add(new ColumnsGroupVariable(col, op, style));
    return this;
  }
View Full Code Here

    if (this.globalHeaderVariables == null)
      this.globalHeaderVariables = new ArrayList();
    if (style == null)
      style = numberStyle;

    this.globalHeaderVariables.add(new ColumnsGroupVariable(column, op, style));
    return this;
  }
View Full Code Here

    ColumnsGroup group = getGroupByNumber(groupNum);
    PropertyColumn column = (PropertyColumn) report.getColumns().get(colNumber -1);
    if (style == null)
      style = numberStyle;

    ColumnsGroupVariable columnsGroupVariable = new ColumnsGroupVariable(column, op, style);
    group.getHeaderVariables().add(columnsGroupVariable);
    return this;
  }
View Full Code Here

    if (this.globalFooterVariables == null)
      this.globalFooterVariables = new ArrayList();
    if (style == null)
      style = numberStyle;

    this.globalFooterVariables.add(new ColumnsGroupVariable(column, op, style));
    return this;
  }
View Full Code Here

    ColumnsGroup group = getGroupByNumber(groupNum);
    PropertyColumn column = (PropertyColumn) report.getColumns().get(colNumber -1);
    if (style == null)
      style = numberStyle;

    ColumnsGroupVariable columnsGroupVariable = new ColumnsGroupVariable(column, op, style);
    group.getFooterVariables().add(columnsGroupVariable);
    return this;
  }
View Full Code Here

    }
  }

  protected Object transformEntity(Entity entity) {
    log.debug("transforming group variable...");
    ColumnsGroupVariable columnsGroupVariable = (ColumnsGroupVariable) entity;
    AbstractColumn col = columnsGroupVariable.getColumnToApplyOperation();
    ColumnsGroupVariableOperation op = columnsGroupVariable.getOperation();

    JRDesignExpression expression = new JRDesignExpression();

    //only variables from the last registered group are important now
    List groupsList = getDjd().getGroupsList();
    JRDesignGroup registeredGroup = (JRDesignGroup)groupsList.get(groupsList.size()-1);

    expression.setText(col.getTextForExpression());
    expression.setValueClassName(col.getValueClassNameForExpression());
    String variableName = col.getGroupVariableName(type, columnToGroupByProperty);

    JRDesignVariable variable = new JRDesignVariable();
    variable.setExpression(expression);
    variable.setCalculation(columnsGroupVariable.getOperation().getValue());
    variable.setName(variableName);

    variable.setResetType(JRDesignVariable.RESET_TYPE_GROUP);
    variable.setResetGroup(registeredGroup);
View Full Code Here

TOP

Related Classes of ar.com.fdvs.dj.domain.entities.ColumnsGroupVariable

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.