org.apache.wicket.extensions.markup.html.repeater.util
Class SingleSortState

java.lang.Object
  extended by org.apache.wicket.extensions.markup.html.repeater.util.SingleSortState
All Implemented Interfaces:
java.io.Serializable, ISortState, IClusterable

public class SingleSortState
extends java.lang.Object
implements ISortState, 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
SingleSortState()
           
 
Method Summary
 SortOrder getPropertySortOrder(java.lang.String property)
          Gets the sort order of a property
 SortParam getSort()
           
 void setPropertySortOrder(java.lang.String property, SortOrder order)
          Sets sort order of the property
 void setSort(SortParam param)
          Sets the current sort state
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingleSortState

public SingleSortState()
Method Detail

setPropertySortOrder

public void setPropertySortOrder(java.lang.String property,
                                 SortOrder order)
Description copied from interface: ISortState
Sets sort order of the property

Specified by:
setPropertySortOrder in interface ISortState
Parameters:
property - the name of the property to sort on
order - sort order
See Also:
ISortState.setPropertySortOrder(String, org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder)

getPropertySortOrder

public SortOrder getPropertySortOrder(java.lang.String property)
Description copied from interface: ISortState
Gets the sort order of a property

Specified by:
getPropertySortOrder in interface ISortState
Parameters:
property - sort property to be checked
Returns:
sort order
See Also:
ISortState.getPropertySortOrder(java.lang.String)

getSort

public SortParam getSort()
Returns:
current sort state

setSort

public void setSort(SortParam param)
Sets the current sort state

Parameters:
param - parameter containing new sorting information

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.