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,v 1.1 2003/03/05 23:03:21 hlship Exp $
- Author:
- mindbridge
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 |
SORT_ASCENDING
public static final boolean SORT_ASCENDING
SORT_DESCENDING
public static final boolean SORT_DESCENDING
getSortColumn
public 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
public boolean getSortOrder()
- Method getSortOrder defines the direction of the table sorting
- Returns:
- boolean the sorting order (see constants)
setSortColumn
public void setSortColumn(String strName,
boolean bOrder)
- Method setSortColumn updates the table sorting column and order
- Parameters:
strName
- the name of the column to sort bybOrder
- the sorting order (see constants)