});
columns.add(new CellItemListenerPropertyColumn<TimesheetDO>(getString("timesheet.description"), null, "shortDescription",
cellItemListener));
final DivPanel panel = gridBuilder.getPanel();
final TablePanel table = new TablePanel(panel.newChildId());
panel.add(table);
final IDataProvider<TimesheetDO> dataProvider = new ListDataProvider<TimesheetDO>(parentPage.getRecentTimesheets());
final DataTable<TimesheetDO, String> dataTable = new DataTable<TimesheetDO, String>(TablePanel.TABLE_ID, columns, dataProvider, 100) {
@Override
protected Item<TimesheetDO> newRowItem(final String id, final int index, final IModel<TimesheetDO> model)
{
return new OddEvenItem<TimesheetDO>(id, index, model);
}
};
final HeadersToolbar headersToolbar = new HeadersToolbar(dataTable, null);
dataTable.addTopToolbar(headersToolbar);
table.add(dataTable);
}