Package ro.fortsoft.wicket.pivot.FieldCalculation

Examples of ro.fortsoft.wicket.pivot.FieldCalculation.FieldValueProvider


          /*
          System.out.println("filter = " + filter);
          System.out.println("values = " + values);
          System.out.println(values.size());
          */
          Object summary = PivotUtils.getSummary(dataField, values, new FieldValueProvider() {           
            @Override
            public Object getFieldValue(PivotField field) {         
              List<Object> fieldValues = getValues(field, filter);
              return field.getAggregator().init().addAll(fieldValues).getResult();
            }
View Full Code Here


      }
      if (!columnFields.isEmpty() && pivotModel.isShowGrandTotalForRow()) {
        for (PivotField dataField : dataFields) {
          if (dataField.getFieldCalculation() != null) {
            double grandTotalValue = PivotUtils.getSummary(dataField, Collections.emptyList(),
                new FieldValueProvider() {
                  @Override
                  public Object getFieldValue(PivotField field) {
                    // If the field is not in the regular
                    // data, we can not return a sum of it
                    if (!grandTotal.containsKey(field))
View Full Code Here

TOP

Related Classes of ro.fortsoft.wicket.pivot.FieldCalculation.FieldValueProvider

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.