Hi all,
It returns...
alert(parent.getChildren()[0]);
[object qx.ui.embeded.HtmlEmbeded]
alert(parent.getChildren()[1]);
[object qx.ui.basic.Image]
alert(parent.getChildren()[2]);
[object qx.ui.basic.Label]
None of them seems treeFolder or treeFile...
I cannot figure out this problem for so long...
I only know alert() to debug, and it is very difficult.
Please help me.
On 12/9/06, jamescowan <[EMAIL PROTECTED]> wrote:
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
-------------------------------------------------------------------------
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