Does anyone have an idea on how to implement a GWT CellTable with an ImageResourceCell from GWT 2.1M3?
I have the following but can't seem to figure out the correct way to add an ImageResourceCell
CellTable<DeviceInfo> ct = new CellTable<DeviceInfo>();
// ct.setSelectionEnabled(true);
ct.setSelectionModel(setSelectionModel(ct));
ct.setPageSize(50);
// listData.addView(ct);
listData.addDataDisplay(ct);
ct.addColumn(new TextColumn<DeviceInfo>() {
@Override
public String getValue(DeviceInfo devInfo) {
return devInfo.getDeviceName();
}
}, "Name");
//THIS IS NOT WORKING
ct.addColumn(new IdentityColumn<DeviceInfo>(new ImageResourceCell()) {
@Override
public String getValue(DeviceInfo devInfo) {
return <Some imageResource>;
}
}, "Status");
Any help on this would rock! Thanks.