public class SortInfoBean extends Object implements Serializable, SortInfo
Constructor and Description |
---|
SortInfoBean()
Creates a new sort field instance.
|
SortInfoBean(String field,
SortDir sortDir)
Creates a new sort info instance.
|
SortInfoBean(ValueProvider<?,?> valueProvider,
SortDir sortDir)
Creates a new sort info instance.
|
Modifier and Type | Method and 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.
|
public SortInfoBean()
public SortInfoBean(String field, SortDir sortDir)
field
- the sort fieldsortDir
- the sort directionpublic SortInfoBean(ValueProvider<?,?> valueProvider, SortDir sortDir)
valueProvider
- the value provider for the sort fieldsortDir
- the sort directionpublic String getSortField()
getSortField
in interface SortInfo
public void setSortField(String sortField)
setSortField
in interface SortInfo
sortField
- the sort fieldpublic SortDir getSortDir()
getSortDir
in interface SortInfo
public void setSortDir(SortDir sortDir)
setSortDir
in interface SortInfo
sortDir
- the sort directionCopyright © 2015. All rights reserved.