public class ListTableModel<T> extends AbstractTableModel implements Observer
| Modifier and Type | Field and Description |
|---|---|
protected Class |
aClass |
protected List<T> |
list |
listenerList| Constructor and Description |
|---|
ListTableModel(List<T> list) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnCount() |
String |
getColumnName(int column) |
List<T> |
getList() |
int |
getRowCount() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
void |
setList(List<T> data) |
void |
update(Observable arg0,
Object arg1) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtpublic int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic Object getValueAt(int rowIndex, int columnIndex)
getValueAt in interface TableModelpublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic void update(Observable arg0, Object arg1)
Copyright © 2004–2018 Ideaconsult Ltd. All rights reserved.