Hi,
I want to create a working example of the CellTable widget that was
recently released in GWT 2.1 M1.
I'm having a hard time finding documentation for this widget, as
apparently it has not been written yet :-/
What I've tried so far:
List<MyCellData> dataList = new ArrayList<MyCellData>();
dataList.add("Pizza", 15);
dataList.add("Car", 4);
ListViewAdapter<MyCellData> adapter = new
ListViewAdapter<MyCellData>();
CellTable<MyCellData> view = new CellTable<MyCellData>(5);
adapter.addView(view);
RootPanel.get("cellTableDiv").add(view);
view.setData(0, stringList.size(), dataList);
adapter.refresh();
private class MyCellData{
private String name;
private int numberOfSomething;
public MyCellData(String name, int numberOfSomething){
this.name = name;
this.numberOfSomething = numberOfSomething;
}
public String getName(){
return name;
}
public int getNumberOfSomething(){
return numberOfSomething;
}
}
I'm not sure what to insert as parameter in the view.setData .
Could someone pleas give me a pointer.... or a map :-)
Thanks!
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.