OK, I've sort-of answered this myself:

I created a member function:

        getNodeFromId : function(node, id)
        {
                
                tempNode = node;
                
                while (tempNode != null)
                {
                        
                        tempNode = tempNode.getLayoutParent()
                        
                        nodeChildren = tempNode.getChildren();
                        
                        for (nodeIndex = 0; nodeIndex < nodeChildren.length; 
nodeIndex++)
                        {
                                
                                if (nodeChildren[nodeIndex].getUserData("id") 
== id)
                                {
                                        
                                        return nodeChildren[nodeIndex];
                                        
                                }
                                
                        }
                        
                }
                
        }

This returns an object based upon the user data property "id" that is set by
.setUserData("id", "idToUse");

Is this the best method to obtain access to the container I spoke of
earlier? This is working for me but maybe I've missed a built-in function to
do this already?

Thanks
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Identifying-and-Accessing-Child-Objects-tp5019274p5019313.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to