to.etc.domui.component.tbl
Interface ISortableTableModel

All Known Subinterfaces:
IProgrammableSortableModel
All Known Implementing Classes:
SimpleSearchModel

public interface ISortableTableModel

When implemented by a TableModel, methods herein will be called when sorting is required.

Author:
Frits Jalvingh Created on Jun 19, 2008

Method Summary
 java.lang.String getSortKey()
          If this model is currently sorted, this returns an identifier (usually a property reference) indicating on which column the thingy is sorted.
 boolean isSortDescending()
          If the set is a sorted set, this returns TRUE if the sort order is descending.
 void sortOn(java.lang.String key, boolean descending)
           
 

Method Detail

sortOn

void sortOn(java.lang.String key,
            boolean descending)
            throws java.lang.Exception
Throws:
java.lang.Exception

getSortKey

java.lang.String getSortKey()
If this model is currently sorted, this returns an identifier (usually a property reference) indicating on which column the thingy is sorted. If the model is unsorted this returns null.

Returns:

isSortDescending

boolean isSortDescending()
If the set is a sorted set, this returns TRUE if the sort order is descending. The return value is undefined for an unsorted model.

Returns: