private class CustomerCommunicationRenderer implements
RowRenderer {
@Override
public void render(Row row, Object data) {
CustomerCommunication customerCommunication = (CustomerCommunication) data;
row.setValue(customerCommunication);
final CommunicationType type = customerCommunication.getCommunicationType();
final boolean reviewed = customerCommunication.getReviewed();
if(!customerCommunication.getReviewed()){
row.setSclass("communication-not-reviewed");
}
appendLabel(row, toString(type));
appendLabel(row, customerCommunication.getOrder().getName());
appendLabel(row,
Util.formatDate(customerCommunication.getDeadline()));
appendLabel(row, customerCommunication.getOrder().getCode());
appendLabel(row, customerCommunication.getOrder()
.getCustomerReference());
appendLabel(row, Util.formatDateTime(customerCommunication
.getCommunicationDate()));
appendCheckbox(row, customerCommunication);
appendOperations(row, customerCommunication);
}