final CellItemListener<PosteingangDO> cellItemListener = new CellItemListener<PosteingangDO>() {
public void populateItem(final Item<ICellPopulator<PosteingangDO>> item, final String componentId,
final IModel<PosteingangDO> rowModel)
{
final PosteingangDO posteingang = rowModel.getObject();
appendCssClasses(item, posteingang.getId(), posteingang.isDeleted());
}
};
columns
.add(new CellItemListenerPropertyColumn<PosteingangDO>(new Model<String>(getString("date")), "datum", "datum", 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<PosteingangDO>> item, final String componentId,
final IModel<PosteingangDO> rowModel)
{
final PosteingangDO posteingang = rowModel.getObject();
item.add(new ListSelectActionPanel(componentId, rowModel, PosteingangEditPage.class, posteingang.getId(),
returnToPage, DateTimeFormatter.instance().getFormattedDate(posteingang.getDatum())));
cellItemListener.populateItem(item, componentId, rowModel);
addRowClick(item);
}
});
columns.add(new CellItemListenerPropertyColumn<PosteingangDO>(new Model<String>(getString("orga.posteingang.absender")), "absender",