Module org.apache.wicket.extensions
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
Implementation of ISortState that can keep track of sort information for a single property.
- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPropertySortOrder
(T property) Gets the sort order of a propertygetSort()
void
setPropertySortOrder
(T property, SortOrder order) Sets sort order of the propertyvoid
Sets the current sort statetoString()
-
Constructor Details
-
SingleSortState
public SingleSortState()
-
-
Method Details
-
setPropertySortOrder
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
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
-
getSort
- Returns:
- current sort state
-
setSort
Sets the current sort state- Parameters:
param
- parameter containing new sorting information
-
toString
-