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>
,IClusterable
public class SingleSortState<T> extends Object implements ISortState<T>, 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 SortOrder
getPropertySortOrder(T property)
Gets the sort order of a propertySortParam<T>
getSort()
void
setPropertySortOrder(T property, SortOrder order)
Sets sort order of the propertyvoid
setSort(SortParam<T> param)
Sets the current sort stateString
toString()
-
-
-
Constructor Detail
-
SingleSortState
public SingleSortState()
-
-
Method Detail
-
setPropertySortOrder
public void setPropertySortOrder(T property, SortOrder order)
Description copied from interface:ISortState
Sets sort order of the property- Specified by:
setPropertySortOrder
in interfaceISortState<T>
- Parameters:
property
- the name of the property to sort onorder
- sort order
-
getPropertySortOrder
public SortOrder getPropertySortOrder(T property)
Description copied from interface:ISortState
Gets the sort order of a property- Specified by:
getPropertySortOrder
in 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
-
-