Class GroupSummaryCustomizer

java.lang.Object
com.smartgwt.client.widgets.grid.GroupSummaryCustomizer

public abstract class GroupSummaryCustomizer extends Object
If ListGrid.getShowGroupSummary() is true, and this method is specified it will be called to generate the field summary value to be displayed for each group level summary row. Note that this is called instead of making use of the ListGridField.summaryFunction.

  • Constructor Details

    • GroupSummaryCustomizer

      public GroupSummaryCustomizer()
  • Method Details

    • getGroupSummary

      public abstract Object[] getGroupSummary(ListGridRecord[] records, ListGridField field, GroupNode groupNode)
      Parameters:
      recordsrecords - for which a summary is being generated (so all records in the group).
      field - pointer to the field for which summary value is being generated
      groupNode - object with specified groupValue and groupName for this group
      Returns:
      This method may return an array of results - in this case the group will show multiple summary rows, with each entry in the array showing up in a different record.