public void redraw() { tableModel.setRows(resultRows); pagingScrollTable = builder.build(tableModel); pagingScrollTable.setResizePolicy(ResizePolicy.FILL_WIDTH); layout.clear(); layout.add(pagingScrollTable); pagingScrollTable.reloadPage(); pagingScrollTable.fillWidth(); }
public void initializeTable() { clearTable(); builder = new PagingScrollTableBuilder<ResultRow>(); builder.tablePixelSize(1100, 100); columnDefs = new ArrayList<AbstractColumnDefinition<ResultRow, ?>>(); columnDefs.add(new SearchColumnDefinition(getLabel("orgPositionTablePersonId"), PERSON)); columnDefs.add(new SearchColumnDefinition(getLabel("orgPositionTablePositionName"), POSITION)); columnDefs.add(new SearchColumnDefinition(getLabel("orgPositionTablePositionDesc"), DESC)); builder.columnDefinitions(columnDefs); tableModel.setColumnDefs(columnDefs); redraw(); }