a:16:{s:9:"#provides";s:16:"dijit._Container";s:9:"#resource";s:13:"_Container.js";s:16:"dijit._Container";a:4:{s:4:"type";s:8:"Function";s:7:"summary";s:56:"Mixin for widgets that contain a set of widget children.";s:11:"description";s:467:"Use this mixin for widgets that needs to know about and keep track of their widget children. Suitable for widgets like BorderContainer and TabContainer which contain (only) a set of child widgets. It's not suitable for widgets like ContentPane which contains mixed HTML (plain DOM nodes in addition to widgets), and where contained widgets are not necessarily directly below this.containerNode. In that case calls like addChild(node, position) wouldn't make sense.";s:9:"classlike";b:1;}s:28:"dijit._Container.isContainer";a:4:{s:9:"prototype";s:16:"dijit._Container";s:4:"tags";a:1:{i:0;s:9:"protected";}s:4:"type";s:7:"Boolean";s:7:"summary";s:70:"Just a flag indicating that this widget descends from dijit._Container";}s:31:"dijit._Container.buildRendering";a:4:{s:9:"prototype";s:16:"dijit._Container";s:4:"type";s:8:"Function";s:6:"source";s:163:" this.inherited(arguments); if(!this.containerNode){ // all widgets with descendants must set containerNode this.containerNode = this.domNode; }";s:7:"summary";s:0:"";}s:25:"dijit._Container.addChild";a:6:{s:9:"prototype";s:16:"dijit._Container";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:6:"widget";a:1:{s:4:"type";s:6:"Widget";}s:11:"insertIndex";a:2:{s:8:"optional";b:1;s:4:"type";s:3:"int";}}s:6:"source";s:647:" var refNode = this.containerNode; if(insertIndex && typeof insertIndex == "number"){ var children = this.getChildren(); if(children && children.length >= insertIndex){ refNode = children[insertIndex-1].domNode; insertIndex = "after"; } } dojo.place(widget.domNode, refNode, insertIndex); // If I've been started but the child widget hasn't been started, // start it now. Make sure to do this after widget has been // inserted into the DOM tree, so it can see that it's being controlled by me, // so it doesn't try to size itself. if(this._started && !widget._started){ widget.startup(); }";s:7:"summary";s:46:"Makes the given widget a child of this widget.";s:11:"description";s:138:"Inserts specified child widget's dom node as a child of this widget's container node, and possibly does other processing (such as layout).";}s:28:"dijit._Container.removeChild";a:5:{s:9:"prototype";s:16:"dijit._Container";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:6:"widget";a:1:{s:4:"type";s:13:"Widget or int";}}s:6:"source";s:287:" if(typeof widget == "number" && widget > 0){ widget = this.getChildren()[widget]; } // If we cannot find the widget, just return if(!widget || !widget.domNode){ return; } var node = widget.domNode; node.parentNode.removeChild(node); // detach but don't destroy";s:7:"summary";s:161:"Removes the passed widget instance from this widget but does not destroy it. You can also pass in an integer indicating the index within the container to remove";}s:29:"dijit._Container._nextElement";a:7:{s:9:"prototype";s:16:"dijit._Container";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"node";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:90:" do{ node = node.nextSibling; }while(node && node.nodeType != 1); return node;";s:7:"summary";s:46:"Find the next (non-text, non-comment etc) node";s:4:"tags";s:7:"private";s:7:"private";b:1;}s:30:"dijit._Container._firstElement";a:7:{s:9:"prototype";s:16:"dijit._Container";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"node";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:118:" node = node.firstChild; if(node && node.nodeType != 1){ node = this._nextElement(node); } return node;";s:7:"summary";s:47:"Find the first (non-text, non-comment etc) node";s:4:"tags";s:7:"private";s:7:"private";b:1;}s:28:"dijit._Container.getChildren";a:6:{s:9:"prototype";s:16:"dijit._Container";s:4:"type";s:8:"Function";s:6:"source";s:87:" return dojo.query("> [widgetId]", this.containerNode).map(dijit.byNode); // Widget[]";s:7:"summary";s:34:"Returns array of children widgets.";s:11:"description";s:63:"Returns the widgets that are directly under this.containerNode.";s:7:"returns";s:8:"Widget[]";}s:28:"dijit._Container.hasChildren";a:5:{s:9:"prototype";s:16:"dijit._Container";s:4:"type";s:8:"Function";s:6:"source";s:62:" return !!this._firstElement(this.containerNode); // Boolean";s:7:"summary";s:83:"Returns true if widget has children, i.e. if this.containerNode contains something.";s:7:"returns";s:7:"Boolean";}s:35:"dijit._Container.destroyDescendants";a:5:{s:9:"prototype";s:16:"dijit._Container";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:11:"preserveDom";a:1:{s:4:"type";s:7:"Boolean";}}s:6:"source";s:93:" dojo.forEach(this.getChildren(), function(child){ child.destroyRecursive(preserveDom); });";s:7:"summary";s:78:"Destroys all the widgets inside this.containerNode, but not this widget itself";}s:35:"dijit._Container._getSiblingOfChild";a:7:{s:9:"prototype";s:16:"dijit._Container";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"child";a:1:{s:4:"type";s:6:"Widget";}s:3:"dir";a:2:{s:4:"type";s:3:"int";s:7:"summary";s:58:"if 1, get the next sibling if -1, get the previous sibling";}}s:6:"source";s:227:" var node = child.domNode; var which = (dir>0 ? "nextSibling" : "previousSibling"); do{ node = node[which]; }while(node && (node.nodeType != 1 || !dijit.byNode(node))); return node ? dijit.byNode(node) : null;";s:7:"summary";s:48:"Get the next or previous widget sibling of child";s:4:"tags";s:7:"private";s:7:"private";b:1;}s:32:"dijit._Container.getIndexOfChild";a:6:{s:9:"prototype";s:16:"dijit._Container";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"child";a:1:{s:4:"type";s:6:"Widget";}}s:6:"source";s:152:" var children = this.getChildren(); for(var i=0, c; c=children[i]; i++){ if(c == child){ return i; // int } } return -1; // int";s:7:"summary";s:64:"Gets the index of the child in this container or -1 if not found";s:7:"returns";s:3:"int";}s:30:"dijit._Container.containerNode";a:2:{s:8:"instance";s:16:"dijit._Container";s:7:"summary";s:0:"";}s:5:"dijit";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}