public class TableSorter extends TableMap
listenerList
Constructor and Description |
---|
TableSorter() |
TableSorter(TableModel model) |
Modifier and Type | Method and Description |
---|---|
void |
addMouseListenerToHeaderInTable(JTable table) |
void |
checkModel() |
int |
compare(int row1,
int row2) |
int |
compareRowsByColumn(int row1,
int row2,
int column) |
Object |
getValueAt(int aRow,
int aColumn) |
void |
n2sort() |
void |
reallocateIndexes() |
void |
setModel(TableModel model) |
void |
setValueAt(Object aValue,
int aRow,
int aColumn) |
void |
shuttlesort(int[] from,
int[] to,
int low,
int high) |
void |
sort(Object sender) |
void |
sortByColumn(int column) |
void |
sortByColumn(int column,
boolean ascending) |
void |
swap(int i,
int j) |
void |
tableChanged(TableModelEvent e) |
getColumnClass, getColumnCount, getColumnName, getModel, getRowCount, isCellEditable
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public TableSorter()
public TableSorter(TableModel model)
public void setModel(TableModel model)
public int compareRowsByColumn(int row1, int row2, int column)
public int compare(int row1, int row2)
public void reallocateIndexes()
public void tableChanged(TableModelEvent e)
tableChanged
in interface TableModelListener
tableChanged
in class TableMap
public void checkModel()
public void sort(Object sender)
public void n2sort()
public void shuttlesort(int[] from, int[] to, int low, int high)
public void swap(int i, int j)
public Object getValueAt(int aRow, int aColumn)
getValueAt
in interface TableModel
getValueAt
in class TableMap
public void setValueAt(Object aValue, int aRow, int aColumn)
setValueAt
in interface TableModel
setValueAt
in class TableMap
public void sortByColumn(int column)
public void sortByColumn(int column, boolean ascending)
public void addMouseListenerToHeaderInTable(JTable table)