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>,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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPropertySortOrder(T property) Gets the sort order of a propertygetSort()voidsetPropertySortOrder(T property, SortOrder order) Sets sort order of the propertyvoidSets the current sort statetoString()
-
Constructor Details
-
SingleSortState
public SingleSortState()
-
-
Method Details
-
setPropertySortOrder
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
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
-
getSort
- Returns:
- current sort state
-
setSort
Sets the current sort state- Parameters:
param- parameter containing new sorting information
-
toString
-