Hi i am trying to use SmartGWT
.
I have Arraylist
ArrayList<FileDocument> documentsArrayList = new ArrayList<FileDocument>();
// all the value are in the documentsArrayList
and a table
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;
}
fields of the grid are like
public ListGridField getName() {
if (name == null) {
name = new ListGridField("name","Name");
}
return name;
}
I want to put values to array list value to table.
documentTable.setData(some list grid record);
How to convert ArrayList
in ListGridRecord
so that i can set the data.