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 SortDir
getSortDir()
Returns the sort direction.String
getSortField()
Returns the sort field.void
setSortDir(SortDir sortDir)
Sets the sort direction.void
setSortField(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:
getSortField
in interfaceSortInfo
- Returns:
- the sort field
-
setSortField
public void setSortField(String sortField)
Sets the sort field.- Specified by:
setSortField
in interfaceSortInfo
- Parameters:
sortField
- the sort field
-
getSortDir
public SortDir getSortDir()
Returns the sort direction.- Specified by:
getSortDir
in interfaceSortInfo
- Returns:
- the sort direction
-
setSortDir
public void setSortDir(SortDir sortDir)
Sets the sort direction.- Specified by:
setSortDir
in interfaceSortInfo
- Parameters:
sortDir
- the sort direction
-
-