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.

Author:
mindbridge

Field Summary
static boolean SORT_ASCENDING
           
static boolean SORT_DESCENDING
           
 
Method Summary
 java.lang.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(java.lang.String strName, boolean bOrder)
          Method setSortColumn updates the table sorting column and order
 

Field Detail

SORT_ASCENDING

public static final boolean SORT_ASCENDING
See Also:
Constant Field Values

SORT_DESCENDING

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

getSortColumn

public java.lang.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(java.lang.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)