T
- S
- the type of the sorting parameterpublic abstract class SortableDataProvider<T,S> extends Object implements ISortableDataProvider<T,S>
SingleSortState
object.
Most times it is convenient to keep sort and filtering information inside the data provider
implementation because it makes that information easy to access within the data provider.Constructor and Description |
---|
SortableDataProvider() |
Modifier and Type | Method and Description |
---|---|
void |
detach()
Detaches model after use.
|
SortParam<S> |
getSort()
Returns current sort state
|
ISortState<S> |
getSortState() |
void |
setSort(SortParam<S> param)
Sets the current sort state
|
void |
setSort(S property,
SortOrder order)
Sets the current sort state
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
iterator, model, size
public final ISortState<S> getSortState()
getSortState
in interface ISortStateLocator<S>
ISortStateLocator.getSortState()
public void setSort(SortParam<S> param)
param
- parameter containing new sorting informationpublic void setSort(S property, SortOrder order)
property
- sort propertyorder
- sort orderpublic void detach()
IDetachable
detach
in interface IDetachable
IDetachable.detach()
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.