org.apache.wicket.extensions.markup.html.repeater.util
Class SortableDataProvider<T>
java.lang.Object
org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T>
- Type Parameters:
T -
- All Implemented Interfaces:
- Serializable, ISortStateLocator, ISortableDataProvider<T>, IClusterable, IDataProvider<T>, IDetachable
public abstract class SortableDataProvider<T>
- extends Object
- implements ISortableDataProvider<T>
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:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortableDataProvider
public SortableDataProvider()
getSortState
public final ISortState getSortState()
- Specified by:
getSortState in interface ISortStateLocator
- Returns:
- ISortState object
- See Also:
ISortStateLocator.getSortState()
getSort
public SortParam getSort()
- Returns current sort state
- Returns:
- current sort state
setSort
public void setSort(SortParam param)
- Sets the current sort state
- Parameters:
param - parameter containing new sorting information
setSort
public void setSort(String property,
SortOrder order)
- Sets the current sort state
- Parameters:
property - sort propertyorder - sort order
detach
public void detach()
- Specified by:
detach in interface IDetachable
- See Also:
IDetachable.detach()
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.