final CellItemListener<EmployeeSalaryDO> cellItemListener = new CellItemListener<EmployeeSalaryDO>() {
public void populateItem(final Item<ICellPopulator<EmployeeSalaryDO>> item, final String componentId,
final IModel<EmployeeSalaryDO> rowModel)
{
final EmployeeSalaryDO employeeSalary = rowModel.getObject();
appendCssClasses(item, employeeSalary.getId(), employeeSalary.isDeleted());
}
};
columns.add(new CellItemListenerPropertyColumn<EmployeeSalaryDO>(getString("calendar.month"), getSortable("formattedYearAndMonth",
sortable), "formattedYearAndMonth", cellItemListener) {
/**
* @see org.projectforge.web.wicket.CellItemListenerPropertyColumn#populateItem(org.apache.wicket.markup.repeater.Item,
* java.lang.String, org.apache.wicket.model.IModel)
*/
@Override
public void populateItem(final Item<ICellPopulator<EmployeeSalaryDO>> item, final String componentId,
final IModel<EmployeeSalaryDO> rowModel)
{
final EmployeeSalaryDO employeeSalary = rowModel.getObject();
if (isSelectMode() == false) {
item.add(new ListSelectActionPanel(componentId, rowModel, EmployeeSalaryEditPage.class, employeeSalary.getId(), returnToPage,
employeeSalary.getFormattedYearAndMonth()));
} else {
item.add(new ListSelectActionPanel(componentId, rowModel, caller, selectProperty, employeeSalary.getId(), employeeSalary
.getFormattedYearAndMonth()));
}
cellItemListener.populateItem(item, componentId, rowModel);
addRowClick(item);
}