|
qflib 0.98.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for sorters used by FilteredAndSortedTableModel
. The compare method will be called with the
original TableModel
and two
row indices into the model.
Method Summary | |
void |
addTableModelSorterListener(TableModelSorterListener listener)
Add a TableModelSorterListener to the TableModelSorter. |
int |
compare(javax.swing.table.TableModel model,
int idx1,
int idx2)
Compare two rows of the table. |
int |
getSortColumn()
Get the column being sorted on. |
boolean |
isSortAscending()
Query whether the rows are sorted in ascending order. |
void |
removeTableModelSorterListener(TableModelSorterListener listener)
Remove a TableModelSorterListener from the TableModelSorter. |
void |
setSortAscending(boolean ascending)
Tell the TableSorter whether the sort order is ascending. |
void |
setSortColumn(int column)
Tell the TableSorter the column to sort on. |
Method Detail |
public int compare(javax.swing.table.TableModel model, int idx1, int idx2)
model
- The original TableModel.idx1
- Index of the first row.idx2
- Index of the second row.public void addTableModelSorterListener(TableModelSorterListener listener)
listener
- The TableModelSorterListener to add.public void removeTableModelSorterListener(TableModelSorterListener listener)
listener
- The TableModelSorterListener to remove.public void setSortColumn(int column)
column
- The column to sort on.public int getSortColumn()
public void setSortAscending(boolean ascending)
ascending
- True for ascending sort order.public boolean isSortAscending()
|
qflib 0.98.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |