public enum SummaryFunctionType extends java.lang.Enum<SummaryFunctionType> implements ValueEnum
'summary row'
, where a row is shown at the
bottom of the listGrid containing summary information about each column.
SummaryFunctions may be specified in one of 2 ways:
records
an array of recordsfield
the field definition for which the summary is required
SummaryFunctionType
type.
Enum Constant and Description |
---|
AVG
Iterates through the set of records, picking up all numeric values for the specified field and determining the mean
value.
|
COUNT
Returns a numeric count of the total number of records passed in.
|
MAX
Iterates through the set of records, picking up all values for the specified field and finding the maximum value.
|
MIN
Iterates through the set of records, picking up all values for the specified field and finding the minimum value.
|
MULTIPLIER
Iterates through the set of records, picking up all numeric values for the specified field and multiplying them together.
|
SUM
Iterates through the set of records, picking up and summing all numeric values for the specified field.
|
TITLE
Returns
field.summaryValueTitle if specified, otherwise field.title |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static SummaryFunctionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SummaryFunctionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SummaryFunctionType SUM
public static final SummaryFunctionType AVG
public static final SummaryFunctionType MAX
public static final SummaryFunctionType MIN
public static final SummaryFunctionType MULTIPLIER
public static final SummaryFunctionType COUNT
public static final SummaryFunctionType TITLE
field.summaryValueTitle
if specified, otherwise field.title
public static SummaryFunctionType[] values()
for (SummaryFunctionType c : SummaryFunctionType.values()) System.out.println(c);
public static SummaryFunctionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null