|
Yeah, this is a fun one. I have done
this, but it’s not as elegant as I was hoping, but it works. What I had
to do was create a TreeNode class. Looks like this: Public class TreeNode { Private String label; Private String data; Private ArrayList children; Getters and setters…. } The key here is the children property. The
property to hold the nodes must be named children or the tree won’t have
any childNodes. There is probably better ways to do this, I.E. implementing
the ITreeDataProvider interface on the AS class, but I couldn’t get it to
work properly, and haven’t had a chance to revisit it. Does your tree
need to load dynamically (I.E. populate the children with another call to the
database on the nodeOpen event) or will you be loading the whole tree at once? If
you load dynamically, you will need to make sure you initialize the children
property or that node won’t be a folder. Dustin Mercer From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf
Of frederic_dematos Hi, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- RE: [flexcoders] Fill a Tree From a JAVA Class Dustin Mercer
- [flexcoders] Re: Fill a Tree From a JAVA Class frederic_dematos
- [flexcoders] Re: Fill a Tree From a JAVA Class frederic_dematos

