wicket.extensions.markup.html.repeater.data.sort
Class ISortableDataProvider.SortState

java.lang.Object
  extended bywicket.extensions.markup.html.repeater.data.sort.ISortableDataProvider.SortState
Enclosing class:
ISortableDataProvider

public static class ISortableDataProvider.SortState
extends java.lang.Object

A simple class to represent the state of a sort field.


Field Summary
static int ASCENDING
          the field is sorted "up"
static int DESCENDING
          the field is sorted "down"
static int NONE
          the field is not used for sorting
 
Constructor Summary
ISortableDataProvider.SortState(int state, int level)
           
 
Method Summary
 int getLevel()
           
 int getState()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASCENDING

public static final int ASCENDING
the field is sorted "up"

See Also:
Constant Field Values

DESCENDING

public static final int DESCENDING
the field is sorted "down"

See Also:
Constant Field Values

NONE

public static final int NONE
the field is not used for sorting

See Also:
Constant Field Values
Constructor Detail

ISortableDataProvider.SortState

public ISortableDataProvider.SortState(int state,
                                       int level)
Parameters:
state - one of ASCENDING, DESCENDING, or NONE
level - level of sort param used for sorting on multiple columns
Method Detail

getLevel

public int getLevel()
Returns:
sort level used when sorting by multiple columns

getState

public int getState()
Returns:
one of ASCENDING, DESCENDING, or NONE


Copyright © 2004-2006 . All Rights Reserved.