I have a tree-structure represented by a list of domain objects. Some of
the domain objects have a "children" property with a java.util.List of
children. The TreeView#setTreeData method takes a
org.apache.pivot.collections.List, and I figured I could do:
setTreeData(new ArrayList(myJavaUtilListList.toArray()));
This works so that I can see the first level of nodes, but I don't know
how to express branch nodes. Also, I would like to lazy load some of the
nodes. I think I need to use the TreeViewBranchListener somehow, but I
can't find any documentation or examples.
Do I need to wrap all my domain objects in TreeNodes or is there another
way to do this?
-- Edvin