|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<SummaryFunctionType>
com.smartgwt.client.types.SummaryFunctionType
public enum SummaryFunctionType
Function to produce a summary value based on an array of records and a field definition. An example usage is the
'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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
String |
getValue()
|
static SummaryFunctionType |
valueOf(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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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
| Method Detail |
|---|
public static SummaryFunctionType[] values()
for (SummaryFunctionType c : SummaryFunctionType.values()) System.out.println(c);
public static SummaryFunctionType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String getValue()
getValue in interface ValueEnum
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||