|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
D - The class of the model object backing the model.public interface SortableTableModel<D>
A genericised TableModel used to
hold instances of objects of the type specified. Contains additional
methods to sort the contents of the model.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Nested Class Summary | |
|---|---|
static class |
SortableTableModel.Direction
The direction in which the current column is sorted. |
| Method Summary | |
|---|---|
SortableTableModel.Direction |
getSortDirection(int column)
Return the sort direction for the specified column. |
void |
sort(int column)
Sort the data by the values in the specified column index. |
void |
sort(int column,
SortableTableModel.Direction direction)
Sort the data by the values in the specified column index. |
| Method Detail |
|---|
SortableTableModel.Direction getSortDirection(int column)
column - The column whose sort direction is to be returned.
null if
no sort directive is available.void sort(int column)
SortableTableModel.Direction of sorting is inferred from the current sort order.
column - The index of the column by which the data is to
be sorted.AbstractTableModel.fireTableDataChanged()
void sort(int column,
SortableTableModel.Direction direction)
column - The index of the column by which the data is to
be sorted.direction - The direction in which the data is to be sorted.AbstractTableModel.fireTableDataChanged()
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||