com.smartgwt.client.data
Class SortSpecifier

java.lang.Object
  extended by com.smartgwt.client.core.JsObject
      extended by com.smartgwt.client.core.DataClass
          extended by com.smartgwt.client.data.SortSpecifier

public class SortSpecifier
extends DataClass

Class defining the details of a single sort operation


Field Summary
 
Fields inherited from class com.smartgwt.client.core.JsObject
jsObj
 
Constructor Summary
SortSpecifier(JavaScriptObject jsObj)
           
SortSpecifier(String fieldName, SortDirection sortDirection)
           
 
Method Summary
static SortSpecifier[] convertToArray(JavaScriptObject nativeArray)
           
 String getField()
          The field name to which this sortSpecifier applies
 SortDirection getSortDirection()
          The direction in which this specifier should sort.
 void setDirection(SortDirection sortDirection)
          The direction in which this specifier should sort.
 void setField(String field)
          The fieldName to which this sortSpecifier applies
 
Methods inherited from class com.smartgwt.client.core.DataClass
doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsObject, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute
 
Methods inherited from class com.smartgwt.client.core.JsObject
isCreated, setJsObj
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortSpecifier

public SortSpecifier(String fieldName,
                     SortDirection sortDirection)

SortSpecifier

public SortSpecifier(JavaScriptObject jsObj)
Method Detail

setDirection

public void setDirection(SortDirection sortDirection)
The direction in which this specifier should sort.

Parameters:
sortDirection - the sortDirection

getSortDirection

public SortDirection getSortDirection()
The direction in which this specifier should sort.

Returns:
the sortDirection

setField

public void setField(String field)
The fieldName to which this sortSpecifier applies

Parameters:
field - the field name

getField

public String getField()
The field name to which this sortSpecifier applies

Returns:
the field name

convertToArray

public static SortSpecifier[] convertToArray(JavaScriptObject nativeArray)