Does anyone have an idea on how to implement GWT CellTable with ImageResourceCell from GWT 2.1M3?
I have the following, but I can’t figure out how to properly add ImageResourceCell
CellTable<DeviceInfo> ct = new CellTable<DeviceInfo>();
ct.setSelectionModel(setSelectionModel(ct));
ct.setPageSize(50);
listData.addDataDisplay(ct);
ct.addColumn(new TextColumn<DeviceInfo>() {
@Override
public String getValue(DeviceInfo devInfo) {
return devInfo.getDeviceName();
}
}, "Name");
//THIS DOES NOT WORK
ct.addColumn(new IdentityColumn<DeviceInfo>(new ImageResourceCell()) {
@Override
public String getValue(DeviceInfo devInfo) {
return <Some imageResource>;
}
}, "Status");
Any help on this rock! Thank.
source
share