public class ArrayTableSorter<R> extends Object
ArrayTableModel
.Constructor and Description |
---|
ArrayTableSorter(ArrayTableModel<R> model)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
install(JTableHeader header)
Sets this object up to allow sorting its model by clicking on a
given JTable header.
|
void |
setSorting(int icol,
boolean descending)
Performs a sort on a given column.
|
void |
uninstall(JTableHeader header)
Reverses the action of a previous
install(javax.swing.table.JTableHeader) action. |
public ArrayTableSorter(ArrayTableModel<R> model)
model
- table modelpublic void install(JTableHeader header)
header
- table header componentpublic void uninstall(JTableHeader header)
install(javax.swing.table.JTableHeader)
action.header
- table header componentpublic void setSorting(int icol, boolean descending)
icol
- column indexdescending
- true sort down, false sort upCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.