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

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


  }
 
  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;   
    }
    return null;
  }
View Full Code Here


    setBandFinalHeight((JRDesignBand) design.getPageFooter());
    setBandFinalHeight((JRDesignBand) design.getNoData());

    for (Iterator iter = design.getGroupsList().iterator(); iter.hasNext();) {
      JRGroup jrgroup = (JRGroup) iter.next();
      DJGroup djGroup = (DJGroup) getReferencesMap().get(jrgroup.getName());
      if (djGroup != null){
        setBandFinalHeight((JRDesignBand) jrgroup.getGroupHeader(),djGroup.getHeaderHeight().intValue(), djGroup.isFitHeaderHeightToContent());
        setBandFinalHeight((JRDesignBand) jrgroup.getGroupFooter(),djGroup.getFooterHeight().intValue(), djGroup.isFitFooterHeightToContent());
      } else {
        setBandFinalHeight((JRDesignBand) jrgroup.getGroupHeader());
        setBandFinalHeight((JRDesignBand) jrgroup.getGroupFooter());
      }
    }
View Full Code Here

    List columnsGroups = getReport().getColumnsGroups();
    if (col instanceof PercentageColumn) {
      PercentageColumn pcol = (PercentageColumn) col;
     
      if (group==null) { //we are in the detail band
        DJGroup innerMostGroup = (DJGroup) columnsGroups.get(columnsGroups.size()-1);
        exp.setText(pcol.getTextForExpression(innerMostGroup));
      } else {
        exp.setText(pcol.getTextForExpression(group));
      }
View Full Code Here

  }

  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);   
    }
    return null;
  }
View Full Code Here

 
  protected DJGroup getDJGroup(AbstractColumn col) {
    Iterator it = getReport().getColumnsGroups().iterator();
    while (it.hasNext()) {
      DJGroup group = (DJGroup) it.next();
      if (group.getColumnToGroupBy().equals(col))
        return group;
    }
    return null;
  }   
View Full Code Here

   * @return
   */
  protected boolean existsGroupWithColumnNames() {
    Iterator it = getReport().getColumnsGroups().iterator();
    while (it.hasNext()) {
      DJGroup group = (DJGroup) it.next();
      if (group.getLayout().isShowColumnName())
        return true;
    }
    return false;
 
View Full Code Here

    }
    return this;
  }

  public FastReportBuilder setGroupLayout(int groupNumber, GroupLayout layout) throws BuilderException {
    DJGroup group = getGroupByNumber(groupNumber);
    group.setLayout(layout);
    return this;
  }
View Full Code Here

    this.globalVariablesGroup.addHeaderVariable(new DJGroupVariable(column, op, style));
    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);
    return this;
  }
View Full Code Here

   * @param groupNum
   * @return
   * @throws BuilderException
   */
  private DJGroup getGroupByNumber(int groupNum) throws BuilderException {
    DJGroup group;
    try {
      group = (DJGroup) report.getColumnsGroups().get(groupNum-1);
    } catch (IndexOutOfBoundsException e) {
      throw new BuilderException("No such group, use addGroups(int) first");
    }
View Full Code Here

   * @param style
   * @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);
    return this;
  }
View Full Code Here

TOP

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

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.