Examples of PercentageColumn


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

     
      if (var.getOperation() != DJCalculation.COUNT && var.getOperation() != DJCalculation.DISTINCT_COUNT )
        textField.setPattern(col.getPattern());
     
      if (col instanceof PercentageColumn) {
        PercentageColumn pcol = (PercentageColumn) col;
        expression.setText(pcol.getTextForExpression(djGroup, djGroup ,type));
        expression.setValueClassName(pcol.getValueClassNameForExpression());
        textField.setEvaluationTime(JRExpression.EVALUATION_TIME_AUTO);
      } else {
        textField.setEvaluationGroup(jgroup);
      }
View Full Code Here

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

      /**
       * Group should not be needed in the percentage column. There should be a variable for each group, using
       * parent group as "rest group"
       */
      if (column instanceof PercentageColumn) {
        PercentageColumn percentageColumn = ((PercentageColumn) column);       
        for (Iterator iterator2 = dr.getColumnsGroups().iterator(); iterator2.hasNext();) {
          DJGroup djGroup = (DJGroup) iterator2.next();
          JRDesignGroup jrGroup = LayoutUtils.getJRDesignGroup(jd, layoutManager, djGroup);
          DJGroupVariableDefRegistrationManager variablesRM = new DJGroupVariableDefRegistrationManager(jd,dr,layoutManager, jrGroup);
          DJGroupVariableDef variable = new DJGroupVariableDef(percentageColumn.getGroupVariableName(djGroup), percentageColumn.getPercentageColumn(), DJCalculation.SUM);
          Collection entities = new ArrayList();
          entities.add(variable);
          variablesRM.registerEntities(entities);
        }
      }     
View Full Code Here

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

      ExpressionColumn expcol = (ExpressionColumn)col;
      expression.setText(expcol.getTextForExpressionForCalculartion());
      expression.setValueClassName(expcol.getExpressionForCalculation().getClassName());
    }
    else if (col instanceof PercentageColumn) {
      PercentageColumn pcol = (PercentageColumn) col;
      expression.setText(pcol.getPercentageColumn().getTextForExpression());
      expression.setValueClassName(pcol.getPercentageColumn().getValueClassNameForExpression());
     
      DJGroup djgroup = groupVariable.getGroup();
      registeredGroup = LayoutUtils.findParentJRGroup(djgroup, getDynamicReport(), getDjd(), getLayoutManager());
    }
    else {
      if (col.getTextFormatter() != null){
        PropertyColumn pcol = (PropertyColumn) col;
        expression.setText("$F{" + pcol.getColumnProperty().getProperty() + "}");
        expression.setValueClassName(pcol.getColumnProperty().getValueClassName());
      } else {
        expression.setText(col.getTextForExpression());
        expression.setValueClassName(col.getValueClassNameForExpression());
      }
    }
View Full Code Here

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

      textField.getPropertiesMap().setProperty(JRTextElement.PROPERTY_TRUNCATE_SUFFIX, col.getTruncateSuffix());
    }

    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));
      }

      textField.setEvaluationTime(JRExpression.EVALUATION_TIME_AUTO);
    } else {
      exp.setText(col.getTextForExpression());
View Full Code Here

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

//    column.getFieldProperties().putAll(fieldProperties);
    return column;
  }

  protected AbstractColumn buildPercentageColumn() {
    PercentageColumn column = new PercentageColumn();
    populateCommonAttributes(column);
    column.setPercentageColumn(percentageColumn);
//    column.setGroup(percentageGroup);
    if (pattern == null)
      column.setPattern("#,##0.00%");
    return column;
  }
View Full Code Here

Examples of org.jacoco.report.html.table.PercentageColumn

    final Table table = new Table();
    table.add("Element", null, new LabelColumn(), false);
    table.add("Missed Instructions", null, new BarColumn(INSTRUCTION,
        locale), true);
    table.add("Cov.", Styles.CTR2,
        new PercentageColumn(INSTRUCTION, locale), false);
    addMissedTotalColumns(table, "Classes", CLASS);
    addMissedTotalColumns(table, "Methods", METHOD);
    addMissedTotalColumns(table, "Blocks", BLOCK);
    addMissedTotalColumns(table, "Lines", LINE);
    return table;
View Full Code Here

Examples of org.jacoco.report.internal.html.table.PercentageColumn

    final Table table = new Table();
    table.add("Element", null, new LabelColumn(), false);
    table.add("Missed Instructions", Styles.BAR, new BarColumn(INSTRUCTION,
        locale), true);
    table.add("Cov.", Styles.CTR2,
        new PercentageColumn(INSTRUCTION, locale), false);
    table.add("Missed Branches", Styles.BAR, new BarColumn(BRANCH, locale),
        false);
    table.add("Cov.", Styles.CTR2, new PercentageColumn(BRANCH, locale),
        false);
    addMissedTotalColumns(table, "Lines", LINE);
    addMissedTotalColumns(table, "Methods", METHOD);
    addMissedTotalColumns(table, "Classes", CLASS);
    return table;
View Full Code Here

Examples of org.jacoco.report.internal.html.table.PercentageColumn

    final Table table = new Table();
    table.add("Element", null, new LabelColumn(), false);
    table.add("Missed Instructions", Styles.BAR, new BarColumn(INSTRUCTION,
        locale), true);
    table.add("Cov.", Styles.CTR2,
        new PercentageColumn(INSTRUCTION, locale), false);
    table.add("Missed Branches", Styles.BAR, new BarColumn(BRANCH, locale),
        false);
    table.add("Cov.", Styles.CTR2, new PercentageColumn(BRANCH, locale),
        false);
    addMissedTotalColumns(table, "Cxty", COMPLEXITY);
    addMissedTotalColumns(table, "Lines", LINE);
    addMissedTotalColumns(table, "Methods", METHOD);
    addMissedTotalColumns(table, "Classes", CLASS);
View Full Code Here

Examples of org.jacoco.report.internal.html.table.PercentageColumn

    final Table t = new Table();
    t.add("Element", null, new LabelColumn(), false);
    t.add("Missed Instructions", Styles.BAR, new BarColumn(CounterEntity.INSTRUCTION,
        locale), true);
    t.add("Cov.", Styles.CTR2,
        new PercentageColumn(CounterEntity.INSTRUCTION, locale), false);
    t.add("Missed Branches", Styles.BAR, new BarColumn(CounterEntity.BRANCH, locale),
        false);
    t.add("Cov.", Styles.CTR2, new PercentageColumn(CounterEntity.BRANCH, locale),
        false);
    addMissedTotalColumns(t, "Cxty", CounterEntity.COMPLEXITY);
    addMissedTotalColumns(t, "Lines", CounterEntity.LINE);
    addMissedTotalColumns(t, "Methods", CounterEntity.METHOD);
    addMissedTotalColumns(t, "Classes", CounterEntity.CLASS);
View Full Code Here

Examples of org.jacoco.report.internal.html.table.PercentageColumn

    final Table t = new Table();
    t.add("Element", null, new LabelColumn(), false);
    t.add("Missed Instructions", Styles.BAR, new BarColumn(CounterEntity.INSTRUCTION,
        locale), true);
    t.add("Cov.", Styles.CTR2,
        new PercentageColumn(CounterEntity.INSTRUCTION, locale), false);
    t.add("Missed Branches", Styles.BAR, new BarColumn(CounterEntity.BRANCH, locale),
        false);
    t.add("Cov.", Styles.CTR2, new PercentageColumn(CounterEntity.BRANCH, locale),
        false);
    addMissedTotalColumns(t, "Cxty", CounterEntity.COMPLEXITY);
    addMissedTotalColumns(t, "Lines", CounterEntity.LINE);
    addMissedTotalColumns(t, "Methods", CounterEntity.METHOD);
    addMissedTotalColumns(t, "Classes", CounterEntity.CLASS);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.