{
public String render(ContactData model, String property,
ColumnData config, int rowIndex, int colIndex,
ListStore<ContactData> store)
{
Params p = new Params();
String img = model.get(IMG);
p.add(img);
return Format.substitute("<img src=\"{0}\" style=\"width=32px;height:32px;cursor: pointer;\" />",p);
}
});
avatarColumnConfig.setFixed(true);
ColumnConfig statusImgColumnConfig = new ColumnConfig(STATUSIMG,"Status", 20);
statusImgColumnConfig.setRenderer(new GridCellRenderer<ContactData>()
{
public String render(ContactData model, String property,
ColumnData config, int rowIndex, int colIndex,
ListStore<ContactData> store)
{
Params p = new Params();
p.add(model.get(STATUSIMG));
return Format.substitute("{0}", p);
}
});
statusImgColumnConfig.setFixed(true);
ColumnConfig groupColumnConfig = new ColumnConfig(USER_GROUP_DD,"Group", 0);
groupColumnConfig.setHidden(true);
ColumnConfig aliasColumnConfig = new ColumnConfig(ALIAS,"Alias",32);
aliasColumnConfig.setRenderer(new GridCellRenderer<ContactData>()
{
public String render(ContactData model, String property,
ColumnData config, int rowIndex, int colIndex,
ListStore<ContactData> store)
{
Params p = new Params();
p.add(model.get(ALIAS));
p.add(model.get(STATUSTEXT));
return Format.substitute("<span style=\"vertical-align: middle;color:black;\">{0}</span><br/><span style=\"vertical-align: middle;color:gray;\">{1}</span>",
p);
}
});