嗨,我想使用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
有什麼問題嗎? –