Re: [qooxdoo-devel] Built-in images and themes

2006-09-15 Thread Denis Carl
It works perfectly !! Thank you for this fast answer :) Sebastian Werner wrote: > > You must remove the selection from the element before removing it. After > removal it does not have any relation to a tree anymore. That's why the > error occurs. > > Cheers, > > Sebastian > > > > Carl

Re: [qooxdoo-devel] Built-in images and themes

2006-09-15 Thread Sebastian Werner
You must remove the selection from the element before removing it. After removal it does not have any relation to a tree anymore. That's why the error occurs. Cheers, Sebastian Carl Denis schrieb: > Hi, > > I use this method this way : > > var node = this.getManager().getSelectedItems()[0]

Re: [qooxdoo-devel] Built-in images and themes

2006-09-14 Thread Carl Denis
Hi, I use this method this way : var node = this.getManager().getSelectedItems()[0]; var parentFolder = node.getParentFolder(); parentFolder.remove(node); I works perfectly but, when I click on another item of my qx.ui.treefullcontrol.Tree the following error message appear in the log popup win

Re: [qooxdoo-devel] Built-in images and themes

2006-09-06 Thread dperez
Hola, I've said myTreeNode, not myTreeWidget var node = TreeView1.getManager().getSelectedItems()[0]; node.getParent().remove(node); Jose Leon wrote: > >>myTreeNode.getParent().remove(myTreeNode); > Thanks a lot for your help, getting the selected item work, but > removing items not y

Re: [qooxdoo-devel] Built-in images and themes

2006-09-06 Thread Jose Leon
Hello, On 9/6/06, dperez <[EMAIL PROTECTED]> wrote: > > Hola > > Removing items must be something similar to: >myTreeNode.getParent().remove(myTreeNode); Thanks a lot for your help, getting the selected item work, but removing items not yet, for example, this line should delete the selected nod

Re: [qooxdoo-devel] Built-in images and themes

2006-09-06 Thread dperez
Hola Removing items must be something similar to: myTreeNode.getParent().remove(myTreeNode); Jose Leon wrote: > > I already know how to add items, but I don't understand how to, for > example, delete the selected item when clicking on a button. Can you > provide a simple example? THANKS!!

Re: [qooxdoo-devel] Built-in images and themes

2006-09-06 Thread dperez
Hola, I use successfully myTree.getManager().getSelectedItems()[0] Jose Leon wrote: > > All this samples get the selected item on an event of the treeview, I > would like to know how to get it, for example, when clicking on a > button. According to the api documentation, there is this meth

Re: [qooxdoo-devel] Built-in images and themes

2006-09-06 Thread Jose Leon
Hello, On 9/6/06, dperez <[EMAIL PROTECTED]> wrote: > Hola Jose, Thanks for your prompt response! > There are already examples of how to get the selected item. > Look at http://demo.qooxdoo.org/html/example/TreeFullControl_3.html All this samples get the selected item on an event of the treeview,

Re: [qooxdoo-devel] Built-in images and themes

2006-09-06 Thread dperez
Hola Jose, There are already examples of how to get the selected item. Look at http://demo.qooxdoo.org/html/example/TreeFullControl_3.html To remove/add items use the standard qx.ui.core.Parent.remove(), add() methods Jose Leon wrote: > > Hello, > I'm using the Tree component and I'm really

[qooxdoo-devel] Built-in images and themes

2006-09-06 Thread Jose Leon
Hello, I'm using the Tree component and I'm really impressed for the work you have done with all the library. I would like to know how to add/delete/modify tree items in real time, some of this information can be extracted from the samples, but I would need specifically: -How to get the selected