By "at the same level", we mean that if A and B are siblings, their children
can be different types even if there are at the same depth in the tree.
 CellTree doesn't support difference types within the same child list.
 You'll have to use a common super type or interface and cast as needed.

The following is supported.  The children of A and B are different types
(Bar and Baz) but are both one level deep:
A (Foo)
- AA (Bar)
- AB (Bar)
- AA (Bar)
B (Foo)
- BA (Baz)
- BB (Baz)
- BC (Baz)

The following is not supported.  The children of A cannot be of multiple
types.
A (Foo)
- AA (Bar)
- AB (Baz)
- AA (Biz)

Thanks,
John LaBanca
jlaba...@google.com


On Tue, Nov 16, 2010 at 8:41 PM, David Pinn <dp...@byandlarge.net> wrote:

> I think type checking and casting within the cell is necessary in that
> case.
>
> On Nov 17, 10:47 am, decitrig <rws...@gmail.com> wrote:
> > The docs for CellTree say that nodes at the same level "usually" share
> > a common type, but that it isn't necessary. However, since the data
> > providers & node info are parameterized, nodes seem to *have* to have
> > a common type at a given level. What am I missing? are there examples
> > anywhere of having types with nothing in common at the same level? Is
> > it just returning a raw NodeInfo and then doing the type checking/
> > casting in the cell?
>
> --
> 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.

Reply via email to