嗨,我想使用SmartGWT
。在SmartGWT ListGrid中的setData
我有ArrayList中
ArrayList<FileDocument> documentsArrayList = new ArrayList<FileDocument>();
//所有值都在documentsArrayList
和一张桌子
private ListGrid getDocumentTable() {
if (documentTable == null) {
documentTable = new ListGrid();
documentTable.setSize("644px", "379px");
documentTable.setCanResizeFields(true);
documentTable.setFields(getStatus(),getIcon(),getName(),getSize(),getModifiedby(),getModifiedDate());
}
return documentTable;
}
电网领域都像
public ListGridField getName() {
if (name == null) {
name = new ListGridField("name","Name");
}
return name;
}
我想说值列表到数组列表值。
documentTable.setData(一些列表网格记录);
如何转换ArrayList
在ListGridRecord
这样我就可以设置数据。
哎呀我的错误。我已编辑它:) –
你能帮我解决这个问题吗?[link](http://stackoverflow.com/q/10412060/780393) – GameBuilder
有什么问题吗? –