import com.pre.entity.base.Item;
public class ItemRowRenderer implements RowRenderer{
public void render(Row row, Object data) throws Exception {
Item item=(Item)data;
row.appendChild(new Checkbox());
row.appendChild(new Label(item.getId().toString()));
row.appendChild(new Label(item.getCode()));
row.appendChild(new Label(item.getDescription().getShortDescription()));
Cell rowCell=new Cell();
Label statusLabel=new Label(item.getStatus());
rowCell.appendChild(statusLabel);
row.appendChild(rowCell);
if(item.getStatus().equals("99")){
rowCell.setStyle("background: RED;");
}
}