The dev guide has a fairly simple example of CellTable: http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html#celltable
There is also one in the checked in javadoc, which is slightly more complicated: <http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html#celltable> http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/javadoc/com/google/gwt/examples/cellview/CellTableExample.java I don't know of an example that uses a List of Lists, but its probably better to represent your row values as specific type instead of just using a List of Strings. Thanks, John LaBanca [email protected] On Mon, Nov 22, 2010 at 1:42 PM, alf <[email protected]> wrote: > I understand idea but for me is very complex I am a newie on java. May > be you know a link o sample where I can learn a "HowTo" > > thanks > alberto > > On Nov 22, 6:56 pm, John LaBanca <[email protected]> wrote: > > You can't specify a matrix to fill a CellTable. You have to declare an > > object that represents each row, then add columns to pull the values out > of > > the row. > > > > The closest thing to a matrix is to declare the CellTable as type > > List<String> (CellTable<List<String>>). Then add columns that read the > > associated index, so column 0 reads list.get(0), column 1 reads > list.get(1), > > etc... Then you can pass a List<List<String>> to setRowData(). > > > > Thanks, > > John LaBanca > > [email protected] > > > > > > > > > > > > > > > > On Mon, Nov 22, 2010 at 10:13 AM, alf <[email protected]> wrote: > > > How can I create a content of table without previosly has a class with > > > models. > > > > > I can cretate a header of column but when I set a list like > > > Arrays.aslist{"",""} only fill a first column a repite the same in > > > other column. I would like send a matrix colum & row to fill table > > > correctly. > > > > > many 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]<google-web-toolkit%[email protected]><google-web-toolkit%2Bunsubs > [email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > 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]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- 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.
