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

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

public interface ISortState
extends IClusterable

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

static final int ASCENDING
property state representing ascending sort order

See Also:
Constant Field Values

DESCENDING

static final int DESCENDING
property state representing descending sort order

See Also:
Constant Field Values

NONE

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

See Also:
Constant Field Values
Method Detail

setPropertySortOrder

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

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-2010 Apache Software Foundation. All Rights Reserved.