Hello Tobias,

I didn't figured out completely what your problem is, but let's give it a 
try :)

> I tried this:
>
> tree.getManager().addEventListener("changeSelection", function(e) {
>             var data = e.getData()[0] ._labelObject.getHtml();
>       });
Just a hint: better use the "getLabelObject()"-method here, instead of 
accessing the LabelObject directly with "_labelObject".

> I need something like the barview where I can just assign a widget to a
> button and when I click on it, the widget appears.
>
> Is there a simple solution?
>
> Or could someone give me a short snippet of his code?
You can assign user-data to each of your tree-folder and access this user-data 
in your "changeSelection"-handler to change the content of your atom-widget 
for each of your tree-folder.
        
        myTreeFolderInstance.setUserData("KEY", "VALUE");

and in your "changeSelection" you can use

tree.getManager().addEventListener("changeSelection", function(e) {
        var data = e.getData()[0].getUserData("KEY");
        this.myAtom.setLabel(data);
}, this);

to access your user-data and set it as the atom's content.

All you have to do is to provide the data for each tree-folder which should be 
shown in your atom widget.

I hope this points out a solution for your problem.

cheers,
   Alex

-------------------------------------------------------------------------
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
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to