Search in sources :

Example 1 with SimpleBeanTreeTableDataModel

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());
    }
}
Also used : SimpleBeanTreeTableDataModel(com.github.bordertech.wcomponents.SimpleBeanTreeTableDataModel) TableTreeNode(com.github.bordertech.wcomponents.TableTreeNode)

Aggregations

SimpleBeanTreeTableDataModel (com.github.bordertech.wcomponents.SimpleBeanTreeTableDataModel)1 TableTreeNode (com.github.bordertech.wcomponents.TableTreeNode)1