new ColumnConfig() {
{
setDataIndex("severity"); //NON-NLS
setHeader(constants.Severity());
setSortable(true);
setRenderer(new Renderer() {
public String render(Object value,
CellMetadata cellMetadata, Record record,
int rowIndex, int colNum, Store store) {
Integer i = (Integer) value;
if (i.intValue() == 0) {
return "<img src='images/error.gif'/>";
} else if (i.intValue() == 1) {
return "<img src='images/information.gif'/>";
} else {
return "";
}
}
});
setWidth(50);
}
}, new ColumnConfig() {
{
setHeader(constants.Timestamp());
setSortable(true);
setDataIndex("timestamp");
setWidth(180);
}
}, new ColumnConfig() {
{
setHeader(constants.Message());
setSortable(true);
setDataIndex("message"); //NON-NLS
setWidth(580);
setRenderer(new Renderer() {
public String render(Object value,
CellMetadata cellMetadata, Record record,
int rowIndex, int colNum, Store store) {
if (value != null) {