Package com.sencha.gxt.data.shared
Class SortInfoBean
- java.lang.Object
-
- com.sencha.gxt.data.shared.SortInfoBean
-
- All Implemented Interfaces:
com.google.web.bindery.requestfactory.shared.BaseProxy,com.google.web.bindery.requestfactory.shared.ValueProxy,SortInfo,Serializable
public class SortInfoBean extends Object implements Serializable, SortInfo
Aggregates sort field and sort direction.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SortInfoBean()Creates a new sort field instance.SortInfoBean(ValueProvider<?,?> valueProvider, SortDir sortDir)Creates a new sort info instance.SortInfoBean(String field, SortDir sortDir)Creates a new sort info instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortDirgetSortDir()Returns the sort direction.StringgetSortField()Returns the sort field.voidsetSortDir(SortDir sortDir)Sets the sort direction.voidsetSortField(String sortField)Sets the sort field.
-
-
-
Constructor Detail
-
SortInfoBean
public SortInfoBean()
Creates a new sort field instance.
-
SortInfoBean
public SortInfoBean(String field, SortDir sortDir)
Creates a new sort info instance.- Parameters:
field- the sort fieldsortDir- the sort direction
-
SortInfoBean
public SortInfoBean(ValueProvider<?,?> valueProvider, SortDir sortDir)
Creates a new sort info instance.- Parameters:
valueProvider- the value provider for the sort fieldsortDir- the sort direction
-
-
Method Detail
-
getSortField
public String getSortField()
Returns the sort field.- Specified by:
getSortFieldin interfaceSortInfo- Returns:
- the sort field
-
setSortField
public void setSortField(String sortField)
Sets the sort field.- Specified by:
setSortFieldin interfaceSortInfo- Parameters:
sortField- the sort field
-
getSortDir
public SortDir getSortDir()
Returns the sort direction.- Specified by:
getSortDirin interfaceSortInfo- Returns:
- the sort direction
-
setSortDir
public void setSortDir(SortDir sortDir)
Sets the sort direction.- Specified by:
setSortDirin interfaceSortInfo- Parameters:
sortDir- the sort direction
-
-