http://google-web-toolkit.googlecode.com/svn/trunk/user/javadoc/com/google/gwt/examples/cellview/CellTreeExample2.java
see the code for this example. What you describe is implemented in the example below, with 3 levels, (ie 3 different objects). HTH. Thanks, Subhro. On Sat, Dec 4, 2010 at 10:34 AM, metalhammer29a <metalhammer...@gmail.com>wrote: > How to implement this use case, which is also mentioned in Google > documentation ? > "Each node has a Cell of a specific type; usually, all Cells at a > given level are of the same type, but that isn't required." [1] > > I am using GWT CellTree. > public static class MyFolderTreeModel implements TreeViewModel > > @Override > public <T> NodeInfo<?> getNodeInfo(T value) > > in this method, I check each Node value > > if( value instance of Folder) > //data provider > //render > > return new DefaultNodeInfo<Folder>(dataProvider, cell); > > The problem is, each Folder can contain child "Folders" AND "Files". > but I can return "only one" from getNodeInfo. > > Does anyone know how I can get around this problem ? > > > [1] > http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html#celltree > > -- > 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-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > 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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.