On 10/18/2011 09:56 AM, rsantiagopaz wrote: > Hi > > I am working with qx.ui.tree.VirtualTree. Good widget. > > But ¿How i can select (programmatically) the parent node of actually > selected node? > > I get tree.getSelection().getItem(0), but, how I get the parent?
Unfortunately, for the VirtualTree there is no parent navigation (maybe apart from ".openNodeAndParents"). All has to be done on the model. What you can do is get the model at the beginning, traverse it, and add parent references to each node you visit. When you then work with model nodes, you can access their parent properties. > What about qx.ui.tree.VirtualTreeItem, this is used for something? The VirtualTreeItem is a component of the VirtualTree, representing nodes in the tree. My take is it is mostly concerned with the visual representation of each tree node, while the VirtualTree class has additional features for managing functionality on the tree. T. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
