This content has been marked as final.
Show 6 replies
-
1. Re: Does TreeNode hold multiple values?
meghiddo May 29, 2009 8:22 AM (in response to meghiddo)Sorry that code would be more like:
for (Device device : deviceCollection.getDevices()) { String x = null; x = device.getDeviceId(); TreeNode y = null; y.addChild(x); }
-
2. Re: Does TreeNode hold multiple values?
meghiddo May 29, 2009 8:33 AM (in response to meghiddo)Maybe TreeNode is the wrong class, maybe it should be Class TreeNodeImpl?
I guess that is what Im asking, what should I use to hold the multiple values that will result from this code, which i can then bind to a recursive treenodeadaptor>? -
3. Re: Does TreeNode hold multiple values?
nbelaevski May 29, 2009 10:39 AM (in response to meghiddo)"Meghiddo" wrote:
Maybe TreeNode is the wrong class, maybe it should be Class TreeNodeImpl?
I guess that is what Im asking, what should I use to hold the multiple values that will result from this code, which i can then bind to a recursive treenodeadaptor>?
You can use collections (list), arrays or maps. -
4. Re: Does TreeNode hold multiple values?
meghiddo May 29, 2009 10:45 AM (in response to meghiddo)I do remember you telling me that sometime ago. I just wanted to be sure though. I also rememebr you recommending XmlTreeDataBuilder Class which is how I came across TreeNode in the first place.
So I don't even really need to use TreeNode at all then right? -
5. Re: Does TreeNode hold multiple values?
nbelaevski May 29, 2009 11:03 AM (in response to meghiddo)Tree model adaptors have no need to use TreeNode class, as tree model is built by another means when adaptors are used.
-
6. Re: Does TreeNode hold multiple values?
meghiddo May 29, 2009 11:12 AM (in response to meghiddo)I see, thanks very much