Lines Matching defs:node
119 var node = new Object();
120 node.children = Array();
121 node.children_data = children_data;
122 node.depth = mom.depth + 1;
124 node.li = document.createElement("li");
125 mom.get_children_ul().appendChild(node.li);
127 node.label_div = document.createElement("div");
128 node.label_div.className = "label";
130 $(node.label_div).addClass("api");
131 $(node.label_div).addClass("api-level-"+api_level);
133 node.li.appendChild(node.label_div);
134 node.label_div.style.paddingLeft = 10*node.depth + "px";
138 node.label_div.style.paddingLeft = ((10*node.depth)+12) + "px";
140 node.label_div.style.paddingLeft = 10*node.depth + "px";
141 node.expand_toggle = document.createElement("a");
142 node.expand_toggle.href = "javascript:void(0)";
143 node.expand_toggle.onclick = function() {
144 if (node.expanded) {
145 $(node.get_children_ul()).slideUp("fast");
146 node.plus_img.src = me.toroot + "assets/images/triangle-closed-small.png";
147 node.expanded = false;
149 expand_node(me, node);
152 node.label_div.appendChild(node.expand_toggle);
154 node.plus_img = document.createElement("img");
155 node.plus_img.src = me.toroot + "assets/images/triangle-closed-small.png";
156 node.plus_img.className = "plus";
157 node.plus_img.border = "0";
158 node.expand_toggle.appendChild(node.plus_img);
160 node.expanded = false;
164 node.label_div.appendChild(a);
165 node.label = document.createTextNode(text);
166 a.appendChild(node.label);
173 a.onclick = node.expand_toggle.onclick;
177 node.expanded = false;
182 node.children_ul = null;
183 node.get_children_ul = function() {
184 if (!node.children_ul) {
185 node.children_ul = document.createElement("ul");
186 node.children_ul.className = "children_ul";
187 node.children_ul.style.display = "none";
188 node.li.appendChild(node.children_ul);
190 return node.children_ul;
193 return node;
196 function expand_node(me, node)
198 if (node.children_data && !node.expanded) {
199 if (node.children_visited) {
200 $(node.get_children_ul()).slideDown("fast");
202 get_node(me, node);
203 if ($(node.label_div).hasClass("absent")) $(node.get_children_ul()).addClass("absent");
204 $(node.get_children_ul()).slideDown("fast");
206 node.plus_img.src = me.toroot + "assets/images/triangle-opened-small.png";
207 node.expanded = true;
290 me.node = new Object();
292 me.node.li = document.getElementById(navtree_id);
293 me.node.children_data = root_nodes;
294 me.node.children = new Array();
295 me.node.children_ul = document.createElement("ul");
296 me.node.get_children_ul = function() { return me.node.children_ul; };
297 //me.node.children_ul.className = "children_ul";
298 me.node.li.appendChild(me.node.children_ul);
299 me.node.depth = 0;
301 get_node(me, me.node);
306 var mom = me.node;