org.apache.tapestry.contrib.table.model
Interface ITableSortingState

All Known Implementing Classes:
SimpleTableSortingState

public interface ITableSortingState

An interface defining the management of the table's sorting state.

Version:
$Id: ITableSortingState.java 243791 2004-02-19 17:38:13Z hlship $
Author:
mindbridge

Field Summary
static boolean SORT_ASCENDING
           
static boolean SORT_DESCENDING
           
 
Method Summary
 String getSortColumn()
          Method getSortColumn defines the column that the table should be sorted upon
 boolean getSortOrder()
          Method getSortOrder defines the direction of the table sorting
 void setSortColumn(String strName, boolean bOrder)
          Method setSortColumn updates the table sorting column and order
 

Field Detail

SORT_ASCENDING

static final boolean SORT_ASCENDING
See Also:
Constant Field Values

SORT_DESCENDING

static final boolean SORT_DESCENDING
See Also:
Constant Field Values
Method Detail

getSortColumn

String getSortColumn()
Method getSortColumn defines the column that the table should be sorted upon

Returns:
String the name of the sorting column or null if the table is not sorted

getSortOrder

boolean getSortOrder()
Method getSortOrder defines the direction of the table sorting

Returns:
boolean the sorting order (see constants)

setSortColumn

void setSortColumn(String strName,
                   boolean bOrder)
Method setSortColumn updates the table sorting column and order

Parameters:
strName - the name of the column to sort by
bOrder - the sorting order (see constants)