use of com.github.bordertech.wcomponents.SimpleBeanTreeTableDataModel in project wcomponents by BorderTech.
the class TableLoadPerformance method startLoad.
/**
* Start load.
*/
private void startLoad() {
tableLayout.setVisible(true);
List<PersonBean> beans = ExampleDataUtil.createExampleData(numRows.getNumber().intValue(), numDocs.getNumber().intValue());
if (isLoadWTable()) {
table.setBean(beans);
}
if (isLoadWDataTable()) {
TableTreeNode tree = createTree(beans);
datatable.setDataModel(new SimpleBeanTreeTableDataModel(new String[] { "firstName", "lastName", "dateOfBirth" }, tree));
}
if (isLoadWTable()) {
ajax2.setVisible(true);
tableShim.setVisible(isLoadWTable());
} else {
ajax4.setVisible(true);
dataShim.setVisible(isLoadWDataTable());
}
}
Aggregations