public abstract class SortableListTableModel extends AbstractTableModel implements org.freehep.swing.table.SortableTableModel
| Modifier and Type | Field and Description |
|---|---|
protected List |
keys |
listenerList| Constructor and Description |
|---|
SortableListTableModel(String[] names,
Class[] types,
List keys) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract int |
compareKeys(Object key1,
Object key2,
int column,
boolean ascending) |
void |
fireTableCellUpdated(int row,
int column) |
void |
fireTableDataChanged() |
void |
fireTableRowsDeleted(int firstRow,
int lastRow) |
void |
fireTableRowsInserted(int firstRow,
int lastRow) |
void |
fireTableRowsUpdated(int firstRow,
int lastRow) |
void |
fireTableStructureChanged() |
Class |
getColumnClass(int c) |
int |
getColumnCount() |
String |
getColumnName(int col) |
protected List |
getKeys() |
int |
getRowCount() |
int |
getSortOnColumn() |
boolean |
isSortAscending() |
void |
setKeys(List keys) |
void |
sort(int column,
boolean ascending) |
addTableModelListener, findColumn, fireTableChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTableModelListener, getValueAt, isCellEditable, removeTableModelListener, setValueAtprotected List keys
protected List getKeys()
public void setKeys(List keys)
public String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic Class getColumnClass(int c)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic int getRowCount()
getRowCount in interface TableModelpublic int getSortOnColumn()
getSortOnColumn in interface org.freehep.swing.table.SortableTableModelpublic boolean isSortAscending()
isSortAscending in interface org.freehep.swing.table.SortableTableModelpublic void sort(int column,
boolean ascending)
sort in interface org.freehep.swing.table.SortableTableModelpublic void fireTableDataChanged()
fireTableDataChanged in class AbstractTableModelpublic void fireTableRowsInserted(int firstRow,
int lastRow)
fireTableRowsInserted in class AbstractTableModelpublic void fireTableRowsUpdated(int firstRow,
int lastRow)
fireTableRowsUpdated in class AbstractTableModelpublic void fireTableRowsDeleted(int firstRow,
int lastRow)
fireTableRowsDeleted in class AbstractTableModelpublic void fireTableCellUpdated(int row,
int column)
fireTableCellUpdated in class AbstractTableModelpublic void fireTableStructureChanged()
fireTableStructureChanged in class AbstractTableModelCopyright © 1996-2014 FreeHEP. All Rights Reserved.