protected void loadRowsCount(Table table, Element element) { Element rowsCountElement = element.element("rowsCount"); if (rowsCountElement != null) { RowsCount rowsCount = factory.create(RowsCount.class); rowsCount.setRowsCountTarget(table); table.setRowsCount(rowsCount); } }
protected void initTable() { entitiesTable = uiComponents.create(Table.class); entitiesTable.setId("table"); entitiesTable.setDatasource(entitiesDs); entitiesTable.setSizeFull(); Boolean multiSelect = WindowParams.MULTI_SELECT.get(getContext()); entitiesTable.setMultiSelect(multiSelect != null ? multiSelect : true); RowsCount rowsCount = uiComponents.create(RowsCount.class); rowsCount.setRowsCountTarget(entitiesTable); entitiesTable.setRowsCount(rowsCount); entitiesTable.focus(); }
RowsCount rowsCount = uiComponents.create(RowsCount.class); rowsCount.setDatasource(propertyDs); table.setRowsCount(rowsCount);
entitiesTable.setRowsCount(rowsCount);
entitiesTable.setRowsCount(rowsCount);