echopointng.table
Interface SortableTableModel

All Superinterfaces:
java.io.Serializable, TableModel
All Known Implementing Classes:
DefaultPageableSortableTableModel, DefaultSortableTableModel

public interface SortableTableModel
extends TableModel

A TableModel representing Sortable data.


Method Summary
 int getCurrentSortColumn()
          Returns the currently sorted column number.
 boolean isCurrentSortAscending()
          Returns true if this model is currently being sorted ascending
 void sortByColumn(int column, boolean ascending)
          Sorts the data backing this model based on the given column and ascending flag.
 
Methods inherited from interface nextapp.echo2.app.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, removeTableModelListener
 

Method Detail

sortByColumn

void sortByColumn(int column,
                  boolean ascending)
Sorts the data backing this model based on the given column and ascending flag.

Parameters:
column - the column to sort by
ascending - sort the column ascending or not

getCurrentSortColumn

int getCurrentSortColumn()
Returns the currently sorted column number.

Returns:
the column number.

isCurrentSortAscending

boolean isCurrentSortAscending()
Returns true if this model is currently being sorted ascending

Returns:
true if sort is ascending