[flexcoders] Re: Fill a Tree From a JAVA Class

2006-10-05 Thread frederic_dematos
Ok thanks, I ll try it --- In flexcoders@yahoogroups.com, "Dustin Mercer" <[EMAIL PROTECTED]> wrote: > > 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 T

[flexcoders] Re: Fill a Tree From a JAVA Class

2006-10-09 Thread frederic_dematos
OK I created my java class TreeNode like that public class TreeNode { private String label; private String data; private ArrayList children; public ArrayList getChildren() { return children; } public void setChildren(ArrayList child

Re: [flexcoders] Re: Fill a Tree From a JAVA Class

2007-03-14 Thread Douglas Knudsen
Wow, way old thread herebut I'm on this topic currently. I implemented the above for a Tree. Problem is all my leaves display with folder icon in the tree even though they have no children. Any ideas? DK On 11/7/06, Matias Nicolas Sommi <[EMAIL PROTECTED]> wrote: Is too late, but I read

Re: [flexcoders] Re: Fill a Tree From a JAVA Class

2007-03-15 Thread Douglas Knudsen
Any thougts? The leaves also display the disclosure icon. Some testing shows that for each of these haschildren is true but children.size is 0. On 3/14/07, Douglas Knudsen <[EMAIL PROTECTED]> wrote: > Wow, way old thread herebut I'm on this topic currently. I implemented > the above for a Tr

Re: [flexcoders] Re: Fill a Tree From a JAVA Class

2006-11-07 Thread Matias Nicolas Sommi
Is too late, but I read this in a personal search in the history messages.The error of NullPointerException maybe is for: for(int i = 0; i < listFiles.length; i++){ treeNode.getChildren().add(listFiles[i]); }In this sentece, you add childrens to the ArrayList, but the ArrayList never h