Class SingleSortState<T>
- java.lang.Object
-
- org.apache.wicket.extensions.markup.html.repeater.util.SingleSortState<T>
-
- Type Parameters:
T- the type of the sort property
- All Implemented Interfaces:
Serializable,ISortState<T>,org.apache.wicket.util.io.IClusterable
public class SingleSortState<T> extends Object implements ISortState<T>, org.apache.wicket.util.io.IClusterable
Implementation of ISortState that can keep track of sort information for a single property.- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SingleSortState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortOrdergetPropertySortOrder(T property)Gets the sort order of a propertySortParam<T>getSort()voidsetPropertySortOrder(T property, SortOrder order)Sets sort order of the propertyvoidsetSort(SortParam<T> param)Sets the current sort stateStringtoString()
-
-
-
Constructor Detail
-
SingleSortState
public SingleSortState()
-
-
Method Detail
-
setPropertySortOrder
public void setPropertySortOrder(T property, SortOrder order)
Description copied from interface:ISortStateSets sort order of the property- Specified by:
setPropertySortOrderin interfaceISortState<T>- Parameters:
property- the name of the property to sort onorder- sort order
-
getPropertySortOrder
public SortOrder getPropertySortOrder(T property)
Description copied from interface:ISortStateGets the sort order of a property- Specified by:
getPropertySortOrderin interfaceISortState<T>- Parameters:
property- sort property to be checked- Returns:
- sort order
-
setSort
public void setSort(SortParam<T> param)
Sets the current sort state- Parameters:
param- parameter containing new sorting information
-
-