Hi,
If you have ImageResource, you can use com.google.gwt.cell.client.ImageResourceCell .
If you have only urls, you can create your own ImageCell like com.google.gwt.cell.client.ImageCell and change html template used :
public class MyImageCell extends AbstractCell<String> {
interface Template extends SafeHtmlTemplates {
@Template("<img src=\"{0}\" style=\"width:20px;height:20px;\"/>") // 20*20 size
SafeHtml img(String url);
}
private static Template template;
/**
* Construct a new MyImageCell.
*/
public MyImageCell() {
if (template == null) {
template = GWT.create(Template.class);
}
}
@Override
public void render(Context context, String value, SafeHtmlBuilder sb) {
if (value != null) {
// The template will sanitize the URI.
sb.append(template.img(value));
}
}
}
Alexandre.