com.extjs.gxt.ui.client.data
Class SortInfo

java.lang.Object
  extended by com.extjs.gxt.ui.client.data.SortInfo
All Implemented Interfaces:
java.io.Serializable

public class SortInfo
extends java.lang.Object
implements java.io.Serializable

Aggregates sort field and sort direction.

See Also:
Serialized Form

Constructor Summary
SortInfo()
          Creates a new sort field instance.
SortInfo(java.lang.String field, Style.SortDir sortDir)
          Creates a new sort info instance.
 
Method Summary
 Style.SortDir getSortDir()
          Returns the sort direction.
 java.lang.String getSortField()
          Returns the sort field.
 void setSortDir(Style.SortDir sortDir)
          Sets the sort direction.
 void setSortField(java.lang.String sortField)
          Sets the sort field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortInfo

public SortInfo()
Creates a new sort field instance.


SortInfo

public SortInfo(java.lang.String field,
                Style.SortDir sortDir)
Creates a new sort info instance.

Parameters:
field - the sort field
sortDir - the sort direction
Method Detail

getSortField

public java.lang.String getSortField()
Returns the sort field.

Returns:
the sort field

setSortField

public void setSortField(java.lang.String sortField)
Sets the sort field.

Parameters:
sortField - the sort field

getSortDir

public Style.SortDir getSortDir()
Returns the sort direction.

Returns:
the sort direction

setSortDir

public void setSortDir(Style.SortDir sortDir)
Sets the sort direction.

Parameters:
sortDir - the sort direction