Thanks,
Jim
On 4/20/06, Benjamin Reitzammer <[EMAIL PROTECTED]> wrote:
Hi,
mohamed_halim wrote:
> Hello everybody,
>
> I want to know how can we get the selected Item ok a Tree or a ListView a
> use it properties for a copy operation per example.
>
> I've tried to use the QxSelectionManager as this :
>
> var treeSource = new QxTree("/");
>
> var manager = new QxTreeSelectionManager(treeSource);
The QxTree class has a "built-in" selection manager. You don't have to
set/create an extra instance.
Simply call
treeSource.getManager().getSelectedItems()
to get the selected items of the tree.
For the QxListView class you can call
var listview = new QxListView(dataArray, headerData);
listview.getPane().getManager().getSelectedItems();
to get the selected items of the listview.
Take a look at the examples on the qooxdoo site for even more
information on how this works
http://qooxdoo.oss.schlund.de/public/demo/example/index.html or
http://qooxdoo.oss.schlund.de/public/demo/test/index.html
Cheers
Benjamin
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel