Package com.smartgwt.client.data
Class GroupValueFunction
java.lang.Object
com.smartgwt.client.data.GroupValueFunction
Provides a way to override the default behavior of
SimpleType.getGroupValue()
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCalls the default implementation ofSimpleType.getGroupValue()
.Returns the SimpleType object being customizedabstract String
Defines new behavior to overrideSimpleType.getGroupValue()
.void
setSimpleType
(SimpleType simpleType)
-
Constructor Details
-
GroupValueFunction
public GroupValueFunction()
-
-
Method Details
-
setSimpleType
-
getSimpleType
Returns the SimpleType object being customized- Returns:
- cutomized SimpleType object
-
executeDefault
public String executeDefault(Object value, Record record, Map field, String fieldName, Canvas component) Calls the default implementation ofSimpleType.getGroupValue()
.- Parameters:
value
- the record value to return a group value forrecord
- the record containing the passed group valuefield
- the field relating to the value to be processedfieldName
- the name of the field relating to the value to be processedcomponent
- the component, usually aListGrid
, containing the passed record- Returns:
- the group value for the passed parameters
-
getValue
public abstract String getValue(Object value, Record record, Map field, String fieldName, Canvas component) Defines new behavior to overrideSimpleType.getGroupValue()
.- Parameters:
value
- the record value to return a group value forrecord
- the record containing the passed group valuefield
- the field relating to the value to be processedfieldName
- the name of the field relating to the value to be processedcomponent
- the component, usually aListGrid
, containing the passed record- Returns:
- the group value for the passed parameters
-