Package com.smartgwt.client.data
Class SortSpecifier
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.data.SortSpecifier
- All Implemented Interfaces:
HasHandlers
Class defining the details of a single sort operation
-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
ConstructorDescriptionSortSpecifier
(JavaScriptObject jsObj) SortSpecifier
(String fieldName, SortDirection sortDirection) -
Method Summary
Modifier and TypeMethodDescriptionstatic SortSpecifier[]
convertToArray
(JavaScriptObject nativeArray) static SortSpecifier[]
convertToArray
(String sortByString) getField()
The field name to which this sortSpecifier appliesstatic SortSpecifier
getOrCreateRef
(JavaScriptObject jsObj) The direction in which this specifier should sort.void
setDirection
(SortDirection sortDirection) The direction in which this specifier should sort.void
The fieldName to which this sortSpecifier appliesMethods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
SortSpecifier
-
SortSpecifier
-
-
Method Details
-
getOrCreateRef
-
setDirection
The direction in which this specifier should sort.- Parameters:
sortDirection
- the sortDirection
-
getSortDirection
The direction in which this specifier should sort.- Returns:
- the sortDirection
-
setField
The fieldName to which this sortSpecifier applies- Parameters:
field
- the field name
-
getField
The field name to which this sortSpecifier applies- Returns:
- the field name
-
convertToArray
-
convertToArray
-