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>,org.apache.wicket.markup.repeater.data.IDataProvider<T>,org.apache.wicket.model.IDetachable,org.apache.wicket.util.io.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 aSingleSortStateobject. 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SortableDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortParam<S>getSort()Returns current sort stateISortState<S>getSortState()voidsetSort(SortParam<S> param)Sets the current sort statevoidsetSort(S property, SortOrder order)Sets the current sort state
-
-
-
Constructor Detail
-
SortableDataProvider
public SortableDataProvider()
-
-
Method Detail
-
getSortState
public final ISortState<S> getSortState()
- Specified by:
getSortStatein interfaceISortStateLocator<T>- Returns:
- ISortState object
-
setSort
public void setSort(SortParam<S> param)
Sets the current sort state- Parameters:
param- parameter containing new sorting information
-
-