wicket.extensions.markup.html.repeater.data.sort
Interface ISortState

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
SingleSortState

public interface ISortState
extends java.io.Serializable

Interface used by OrderByLink to interact with any object that keeps track of sorting state

Author:
Igor Vaynberg (ivaynberg)

Field Summary
static int ASCENDING
          property state representing ascending sort order
static int DESCENDING
          property state representing descending sort order
static int NONE
          property state presenting not-sorted sort order
 
Method Summary
 int getPropertySortOrder(java.lang.String property)
          Gets the sort order of a property
 void setPropertySortOrder(java.lang.String property, int state)
          Sets sort order of the property
 

Field Detail

ASCENDING

public static final int ASCENDING
property state representing ascending sort order

See Also:
Constant Field Values

DESCENDING

public static final int DESCENDING
property state representing descending sort order

See Also:
Constant Field Values

NONE

public static final int NONE
property state presenting not-sorted sort order

See Also:
Constant Field Values
Method Detail

setPropertySortOrder

public void setPropertySortOrder(java.lang.String property,
                                 int state)
Sets sort order of the property

Parameters:
property - the name of the property to sort on
state - new sort state of the property. must be one of ASCENDING, DESCENDING, or NONE

getPropertySortOrder

public int getPropertySortOrder(java.lang.String property)
Gets the sort order of a property

Parameters:
property - sort property to be checked
Returns:
one of ASCENDING, DESCENDING, or NONE


Copyright © 2004-2008 Wicket developers. All Rights Reserved.