public class BeanTableModel<T> extends AbstractTableModel
| Modifier and Type | Field and Description |
|---|---|
protected List<T> |
list |
listenerList| Constructor and Description |
|---|
BeanTableModel(List<T> list,
Class<T> clazz) |
| Modifier and Type | Method and Description |
|---|---|
int |
addRow(T bean) |
T |
deleteRow(int row) |
int |
getColumnCount() |
String |
getColumnName(int col) |
int |
getRowCount() |
Object |
getValueAt(int row,
int col) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtpublic int getRowCount()
public int getColumnCount()
public Object getValueAt(int row, int col)
public String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic int addRow(T bean)
public T deleteRow(int row)
Copyright © 2019. All rights reserved.