Package org.springframework.shell.table
Class BeanListTableModel<T>
java.lang.Object
org.springframework.shell.table.TableModel
org.springframework.shell.table.BeanListTableModel<T>
A table model that is backed by a list of beans.
 
One can control which properties are exposed (and their order). There is also a convenience constructor for adding a special header row.
- 
Constructor Summary
ConstructorsConstructorDescriptionBeanListTableModel(Class<T> clazz, Iterable<T> list) BeanListTableModel(Iterable<T> list, String... propertyNames) BeanListTableModel(Iterable<T> list, LinkedHashMap<String, Object> header)  - 
Method Summary
Methods inherited from class org.springframework.shell.table.TableModel
transpose 
- 
Constructor Details
- 
BeanListTableModel
 - 
BeanListTableModel
 - 
BeanListTableModel
 
 - 
 - 
Method Details
- 
getRowCount
public int getRowCount()- Specified by:
 getRowCountin classTableModel- Returns:
 - the number of rows that can be queried.
 Values between 0 and 
rowCount-1inclusive are valid values. 
 - 
getColumnCount
public int getColumnCount()- Specified by:
 getColumnCountin classTableModel- Returns:
 - the number of columns that can be queried.
 Values between 0 and 
columnCount-1inclusive are valid values. 
 - 
getValue
- Specified by:
 getValuein classTableModel- Parameters:
 row- the row that is being queriedcolumn- the column that is being queried- Returns:
 - the data value to be displayed at a given row and column, which may be null.
 
 
 -