public class TableSorter extends TableMap
| Modifier and Type | Field and Description |
|---|---|
protected Vector |
ascendings |
protected int[] |
indexes |
protected Vector |
sortingColumns |
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) |
EntityResult |
getEntityResult(TableModel model) |
int[] |
getIndexes() |
EntityResult |
getOrderedEntityResult(TableModel model) |
Object |
getValueAt(int aRow,
int aColumn) |
void |
n2sort() |
void |
reallocateIndexes() |
void |
resetOrder() |
void |
resetOrder(int col) |
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, isCellEditableaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerprotected int[] indexes
protected Vector sortingColumns
protected Vector ascendings
public TableSorter()
public TableSorter(TableModel model)
public int[] getIndexes()
public void setModel(TableModel model)
public EntityResult getOrderedEntityResult(TableModel model)
public EntityResult getEntityResult(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 TableModelListenertableChanged in class TableMappublic 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 TableModelgetValueAt in class TableMappublic void setValueAt(Object aValue, int aRow, int aColumn)
setValueAt in interface TableModelsetValueAt in class TableMappublic void sortByColumn(int column)
public void sortByColumn(int column,
boolean ascending)
public void addMouseListenerToHeaderInTable(JTable table)
public void resetOrder()
public void resetOrder(int col)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.