Hi,

first of all, please keep in mind this is an english-language list.

To answer your question, treeItem._getChildren[1] will return a list 
with the child widgets that you added in configureTreeItem, including 
the "text" label you added.

Alternatively, check out the TreeVirtual widget:

http://demo.qooxdoo.org/current/demobrowser/#treevirtual~TreeVirtual_Multiple_Columns.html

I think that would a better choice for your use case than the regular 
tree which isn't really meant to display content other than an icon and 
label.

[1] 
http://demo.qooxdoo.org/current/apiviewer/#qx.ui.core.Widget~_getChildren


Regards,
Daniel


On 07/18/2011 05:10 PM, smisobnline wrote:
> Ich kann mit
>
> tree.getChildren()[i].getChildren()[j].getLabel();
>
> Das Label eines Treeeintrages abfragen, aber wie den "Content?
>
> Ich habe shcon das hier versucht
>
> tree.getChildren()[i].getChildren()[j].getChildrenContainer().getValue();
> tree.getChildren()[i].getChildren()[j].getContainerElement().getValue();
> tree.getChildren()[i].getChildren()[j].getContentElement().getValue();
>
> Die Werte füge ich mit dieser Funktion ein:
>
>
>               configureTreeItem : function(treeItem, label, wert){
>                   if (treeItem instanceof qx.ui.tree.TreeFolder) {
>                       treeItem.addOpenButton();
>                       }
>
>                   // The label
>                   treeItem.addLabel(label);
>
>                   // All else should be right justified
>                   treeItem.addWidget(new qx.ui.core.Spacer(), {flex: 1});
>
>                   var text = new qx.ui.basic.Label(wert);
>                   text.setWidth(150);
>                   text.setTextAlign("right");
>                   treeItem.addWidget(text);
>                   treeItem.setIcon("");
>
>                   return treeItem;
>                   },
>
> Was mach ich falsch?
>
> Danke.
>
>
> ------------------------------------------------------------------------------
> AppSumo Presents a FREE Video for the SourceForge Community by Eric
> Ries, the creator of the Lean Startup Methodology on "Lean Startup
> Secrets Revealed." This video shows you how to validate your ideas,
> optimize your ideas and identify your business strategy.
> http://p.sf.net/sfu/appsumosfdev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to