HOME

com.ultraswing
Interface SortableTableModel

All Superinterfaces:
TableModel
All Known Implementing Classes:
DefaultSortableTableModel

public interface SortableTableModel
extends TableModel

A sortable table model interface


Method Summary
 int getSortedColumnIndex()
          Returns the sorted column, or -1 if no column is sorted
 boolean isAscending()
          Returns true if it's ascending order
 boolean isSortable(int column)
          Determines if the passed column is sortable or not
 void setSortByColumn(int column, boolean ascending)
          Sets the sorting order of colum
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

isSortable

public boolean isSortable(int column)
Determines if the passed column is sortable or not


setSortByColumn

public void setSortByColumn(int column,
                            boolean ascending)
Sets the sorting order of colum

Parameters:
column - colum index
ascending - if true, sort the specified column into ascending order

isAscending

public boolean isAscending()
Returns true if it's ascending order


getSortedColumnIndex

public int getSortedColumnIndex()
Returns the sorted column, or -1 if no column is sorted


HOME

Copyright © 2002 iReasoning Networks. All Rights Reserved.