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

Reply via email to