public class MetaColumnTableSorter extends Object
Constructor and Description |
---|
MetaColumnTableSorter(MetaColumnTableModel model)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getSortIndex()
Returns the index of the column on which sorting is in effect.
|
JComponent |
getUnsortLabel()
Returns a component that will display an indication of when
the natural (unsorted) sequence is in use.
|
void |
install(JTableHeader header)
Sets this object up to allow sorting its model by clicking on a
given JTable header.
|
boolean |
isDescending()
Returns sort sense.
|
void |
setSorting(int icol,
boolean descending)
Instructs this sorter to keep the table model sorted
according to a given column.
|
public MetaColumnTableSorter(MetaColumnTableModel model)
model
- the model whose sorting this sorter orchestratespublic void install(JTableHeader header)
header
- table header componentpublic JComponent getUnsortLabel()
public void setSorting(int icol, boolean descending)
icol
- sort column index, or -1 for no sortingdescending
- true for descending sequence, false for ascending;
ignored for no sort columnpublic int getSortIndex()
public boolean isDescending()
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.