Try to first create a static example without rpc. Create it based on the
frontend/demo/demo/build/html/test/* files of the qooxdoo sdk. You can
take the Tree_1.html file as a starting point. If you got this working
go ahead using your rpc code.
When this does not work post your example which should be as simple as
possible but still showing your problem and which should be runnable
from the frontend/demo/demo/build/html/test/* folder.
Otherwise we can just guess how your code looks like.
Yasu Takahashi schrieb:
Hi again,
alert(parent);
returns...
[Object qx.ui.treefullcontrol.TreeFolder]
alert(parent.getContainerObject())
returns...
undefined
mmm...
Not working..
On 12/12/06, *Dietrich Streifert* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi,
try the getContainerObject() method of TreeFolder and on the
result the getChildren() method. This should contain the
TreeFolder and TreeFile instances.
Yasu Takahashi schrieb:
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]
<mailto:[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
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
<mailto:[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 <http://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
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
_______________________________________________
qooxdoo-devel mailing list
[email protected]
<mailto:[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
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH
-------------------------------------------------------------------------
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
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
_______________________________________________
qooxdoo-devel mailing list
[email protected]
<mailto:[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
--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH
-------------------------------------------------------------------------
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