One revision to my suggestion would be to not have a separate
interface for branch vs. regular node.  We can probably use the
existing MyFaces TreeNode interface which has an isLeaf method.  It
turns out this is how its done in the Swing version of TreeNode so we
should probably conform to that.

One question for Oliver would be why the children() method returns an
Interrator instead of Enumeration as in the Swing version?  Other than
this method the TreeNode interface seems to match the Swing version.

Also, would it be appropriate to just use the
javax.swing.tree.TreeNode interface?  If the interfaces are identical
maybe we could just use the one in the java API.  Its a little odd
perhaps but I can't really think of a good reason not to do so.

sean

Reply via email to