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) |
transpose
public BeanListTableModel(Iterable<T> list, LinkedHashMap<String,Object> header)
public int getRowCount()
getRowCount
in class TableModel
rowCount-1
inclusive are valid values.public int getColumnCount()
getColumnCount
in class TableModel
columnCount-1
inclusive are valid values.public Object getValue(int row, int column)
getValue
in class TableModel
row
- the row that is being queriedcolumn
- the column that is being queriedCopyright © 2017 Pivotal Software, Inc.. All rights reserved.