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, setValueAt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTableModelListener, getValueAt, isCellEditable, removeTableModelListener, setValueAt
protected List keys
protected List getKeys()
public void setKeys(List keys)
public String getColumnName(int col)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public Class getColumnClass(int c)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public int getRowCount()
getRowCount
in interface TableModel
public int getSortOnColumn()
getSortOnColumn
in interface org.freehep.swing.table.SortableTableModel
public boolean isSortAscending()
isSortAscending
in interface org.freehep.swing.table.SortableTableModel
public void sort(int column, boolean ascending)
sort
in interface org.freehep.swing.table.SortableTableModel
public void fireTableDataChanged()
fireTableDataChanged
in class AbstractTableModel
public void fireTableRowsInserted(int firstRow, int lastRow)
fireTableRowsInserted
in class AbstractTableModel
public void fireTableRowsUpdated(int firstRow, int lastRow)
fireTableRowsUpdated
in class AbstractTableModel
public void fireTableRowsDeleted(int firstRow, int lastRow)
fireTableRowsDeleted
in class AbstractTableModel
public void fireTableCellUpdated(int row, int column)
fireTableCellUpdated
in class AbstractTableModel
public void fireTableStructureChanged()
fireTableStructureChanged
in class AbstractTableModel
Copyright © 1996-2014 FreeHEP. All Rights Reserved.