is it possible to set multiple columns using CellTree?

203 views
Skip to first unread message

salmon david

unread,
Dec 19, 2010, 11:46:27 PM12/19/10
to Google Web Toolkit
Hi all,
I am going to use CellTree. But i need to create multiple columns like
name, age, phoneno etc. is it possible to set multiple columns with
celltree? if possible, how to do that? please can u post code snippet
for that?
thanks in advance..


thanks,
salmon

Subhrajyoti Moitra

unread,
Dec 20, 2010, 1:27:54 PM12/20/10
to google-we...@googlegroups.com
You can use a CompositeCell

                List<HasCell<NavTreeItem, ?>> hasCells=new ArrayList<HasCell<NavTreeItem,?>>();
                //code to create the 2 columns.
                hasCells.add(checkBoxColumn);
                hasCells.add(mainTextCol);
                CompositeCell<NavTreeItem> cc=new CompositeCell<NavTreeItem>(hasCells);


return new DefaultNodeInfo<NavTreeItem>(dataProvider, cc,selectionModel,null);


Thanks,
Subhro.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Qrunk

unread,
Feb 2, 2012, 1:16:45 PM2/2/12
to google-we...@googlegroups.com
Hi,

Can someone please explain me,

1) what is checkBoxColumn and mainTextColumn
2)what is that HasCell list ??
3)How to integrate it with in Google GWT CellTree example ??

Thanks
Reply all
Reply to author
Forward
0 new messages