Module org.apache.wicket.extensions
Class SortableDataProvider<T,S>
java.lang.Object
org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T,S>
- Type Parameters:
T
-S
- the type of the sorting parameter
- All Implemented Interfaces:
Serializable
,ISortStateLocator<S>
,ISortableDataProvider<T,
,S> IDataProvider<T>
,IDetachable
,IClusterable
public abstract class SortableDataProvider<T,S>
extends Object
implements ISortableDataProvider<T,S>
Convenience implementation of a data provider that can also act as a locator for a
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.- Author:
- Igor Vaynberg (ivaynberg at apache dot org)
- See Also:
-
Constructor Details
-
SortableDataProvider
public SortableDataProvider()
-
-
Method Details
-
getSortState
- Specified by:
getSortState
in interfaceISortStateLocator<T>
- Returns:
- ISortState object
-
getSort
Returns current sort state- Returns:
- current sort state
-
setSort
Sets the current sort state- Parameters:
param
- parameter containing new sorting information
-
setSort
Sets the current sort state- Parameters:
property
- sort propertyorder
- sort order
-