I do treeFolder.getChildren()[1];

I think the first element of getChildren contains the html rendering of the 
tree and at element position 1 the child tree folder.

I think this is right - it was not clear to me from the api documentation; 
looking through the treefolder object's properties in firebug is the way I 
came to this. There might be a better way?

James



Yasu Takahashi wrote:
> 
> Hello,
> 
> Please help me...
> I've spend so many days trying to get this work.
> I have read API and documentation, but could not figure out...
> 
> I am using classes below:
> qx.ui.tree.AbstractTreeElement
> qx.ui.tree.Tree
> qx.ui.tree.TreeFile
> qx.ui.tree.TreeFolder
> 
> and I can get "parent" by getParentFolder() function, but I cannot get
> "children".
> 
> //------------------------
> // Adding children to a parent. Change the parent to the first child,
> then do that again 10 times.
> // parent - root of tree.
> //------------------------
> for(j = 0; j < 10; j++){
>    if(!parent.hasContent()){
>       parent.open();
>       rpcAddChildren(parent);  //get children from database and add to
> parent. This is working
>       alert("add children");
>    }
> 
>    /*
>       This part is NOT working.
>        I want to set new parent.
>    */
>    parent = parent.getFirstChild();
> }             
> 
> Thank you =)
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-getting-children-of-tree-element-%28qx.ui.tree%29-tf2780892.html#a7760911
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to