I think a good way to store custom data in a TreeVirtual is
to use:
setUserData(myNodeDisplayName, myCustomNodeObj).
//myCustomNodeObj is a self made class which stores the custom data for the
node.
If all nodes have a unique labeltext, this would be enough.
You can use
----------
vTree.addEventListener("changeSelection", function(e){
var selectedNodes = e.getData();
var model = vTree.getDataModel();
var lbl = selectedNodes[0].label;
var obj = model.getUserData(lbl);
var cont = new qx.ui.basic.Atom( "ID: " + obj.getId() +
"<br>Name:
"+obj.getName()+
"<br>DisplayName:
"+obj.getDisplayName());
},this);
-------------------
Something like this should work...I guess ;)
If the labels are not unique you maybe should put the node-hierarchy as a
prefix to the "setUserData"
setUserData(myNodeHierarchy+"/"+myNodeDisplayName, myCustomNodeObj).
Than it is unique ;)
Tobias
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Tobias Koller
(GERMO GmbH)
Gesendet: Dienstag, 29. Mai 2007 08:34
An: qooxdoo Development
Betreff: Re: [qooxdoo-devel] How do I set a theme?
You can also configure the frontend\framework\tool\make\application.mk-File
From
----------------
APPLICATION_THEME = qx.theme.ClassicRoyale
----------------
To
----------------
APPLICATION_THEME = qx.theme.Ext
----------------
for example.
Tobias
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von James A. Pyrich
Gesendet: Samstag, 26. Mai 2007 02:43
An: qooxdoo Development
Betreff: Re: [qooxdoo-devel] How do I set a theme?
Daniel,
Put this line in your Application's initialize() function:
qx.manager.object.AppearanceManager.getInstance().setAppearanceTheme(
new theme.you.want.Theme);
James
FrozenDice wrote:
> I've noticed in some of the examples on the qooxdoo website there is
> the ability to change your Theme. How can I set a theme in the code?
> I don't want to give the user a set of buttons of even have them click
> one. I just want my widgets to default to a certain theme.
>
> Thank you for your time.
>
> - Daniel
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel