public class BeanListTableModel<T> extends TableModel
One can control which properties are exposed (and their order). There is also a convenience constructor for adding a special header row.
| Constructor and Description |
|---|
BeanListTableModel(Class<T> clazz,
Iterable<T> list) |
BeanListTableModel(Iterable<T> list,
LinkedHashMap<String,Object> header) |
BeanListTableModel(Iterable<T> list,
String... propertyNames) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnCount() |
int |
getRowCount() |
Object |
getValue(int row,
int column) |
transposepublic BeanListTableModel(Iterable<T> list, LinkedHashMap<String,Object> header)
public int getRowCount()
getRowCount in class TableModelrowCount-1 inclusive are valid values.public int getColumnCount()
getColumnCount in class TableModelcolumnCount-1 inclusive are valid values.public Object getValue(int row, int column)
getValue in class TableModelrow - the row that is being queriedcolumn - the column that is being queriedCopyright © 2023. All rights reserved.