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