Package com.smartgwt.client.data
Class GroupTitleFunction
java.lang.Object
com.smartgwt.client.data.GroupTitleFunction
Provides a way to override the default behavior of
SimpleType.getGroupTitle()
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCalls the default implementation ofSimpleType.getGroupTitle()
.Returns the SimpleType object being customizedabstract Object
Defines new behavior to overrideSimpleType.getGroupTitle()
.void
setSimpleType
(SimpleType simpleType)
-
Constructor Details
-
GroupTitleFunction
public GroupTitleFunction()
-
-
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.getGroupTitle()
.- Parameters:
value
- the record value to return a group title 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 title for the passed parameters
-
getTitle
public abstract Object getTitle(Object value, Record record, Map field, String fieldName, Canvas component) Defines new behavior to overrideSimpleType.getGroupTitle()
.- Parameters:
value
- the record value to return a group title 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 title for the passed parameters
-