我必须显示像this这样的网格,其中每行重复相同的图标。
问题是如果我添加第二行,它就会崩溃。
该图像columnconfig的代码是
ColumnConfig<recordtabella, String> iconCol = new ColumnConfig<recordtabella,String>(props.prodotto(),50,"Download");
iconCol.setCell(new AbstractCell<String>() {
public void render(Context context,String value, SafeHtmlBuilder sb) {
sb.appendHtmlConstant("<img src='img/1404505696_download.png'>");
}
}
我得到的错误是: 给定的模型无法添加到ListStore,因为它(或具有相同键的其他模型)已经存在。
你可以帮帮我吗?