Hi,

I am trying to build Class (Object Model) Explorer in Flex,
so it would show user Classes within Classes and allow View/Add/Edit/Delete
them.
This is not Flex classes, but kind of ORM system for user data.
So I receive user data as from DB with a row like:
Path (class4.class3.class2) - not like package, but true hierachical data.
Class (Class1 which consists Class name 
and array of Attributes (primitives), say String's, Int's, etc)
row = path + class + (list of attributes or 1 attribute per row, can go
either way)

Need to build a Tree from that and put it in the 1st ADG column.
I have 1000s of Classes, and it can go 10+ levels deep,
and need to show Classes in a tree all the way deep, 
so the leaf of a tree is a class consisting only of primitives, not other
classes).

So any idea how to build a tree (HierarchicalData) out of that flat data 
(true hierarchical data, not grouping)?
Any code samples?  


I created a POC, here is an excerpt of input data for a tree:
[Bindable]
public var acClasses:Object = {
  category:"root", children: [
    new PathVO("class4", [
       new PathVO("class3", [
          new PathVO("class2", [
            new ClassVO("Class1", { "Attr1", "Attr2", "Attr3"} )
          ] )
       ] )
     ] )
 }; 
            
Please advise!

-- 
Thank you in advance,
Oleg



--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/Building-Class-Explorer-tp4385.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to