Lines Matching refs:node

100   var node = new Object();
101 node.children = Array();
102 node.children_data = children_data;
103 node.depth = mom.depth + 1;
105 node.li = document.createElement("li");
106 mom.get_children_ul().appendChild(node.li);
108 node.label_div = document.createElement("div");
109 node.label_div.className = "label";
111 $(node.label_div).addClass("api");
112 $(node.label_div).addClass("api-level-"+api_level);
114 node.li.appendChild(node.label_div);
115 node.label_div.style.paddingLeft = 10*node.depth + "px";
119 node.label_div.style.paddingLeft = ((10*node.depth)+12) + "px";
121 node.label_div.style.paddingLeft = 10*node.depth + "px";
122 node.expand_toggle = document.createElement("a");
123 node.expand_toggle.href = "javascript:void(0)";
124 node.expand_toggle.onclick = function() {
125 if (node.expanded) {
126 $(node.get_children_ul()).slideUp("fast");
127 node.plus_img.src = me.toroot + "assets/images/triangle-closed-small.png";
128 node.expanded = false;
130 expand_node(me, node);
133 node.label_div.appendChild(node.expand_toggle);
135 node.plus_img = document.createElement("img");
136 node.plus_img.src = me.toroot + "assets/images/triangle-closed-small.png";
137 node.plus_img.className = "plus";
138 node.plus_img.border = "0";
139 node.expand_toggle.appendChild(node.plus_img);
141 node.expanded = false;
145 node.label_div.appendChild(a);
146 node.label = document.createTextNode(text);
147 a.appendChild(node.label);
154 a.onclick = node.expand_toggle.onclick;
158 node.expanded = false;
163 node.children_ul = null;
164 node.get_children_ul = function() {
165 if (!node.children_ul) {
166 node.children_ul = document.createElement("ul");
167 node.children_ul.className = "children_ul";
168 node.children_ul.style.display = "none";
169 node.li.appendChild(node.children_ul);
171 return node.children_ul;
174 return node;
177 function expand_node(me, node)
179 if (node.children_data && !node.expanded) {
180 if (node.children_visited) {
181 $(node.get_children_ul()).slideDown("fast");
183 get_node(me, node);
184 if ($(node.label_div).hasClass("absent")) $(node.get_children_ul()).addClass("absent");
185 $(node.get_children_ul()).slideDown("fast");
187 node.plus_img.src = me.toroot + "assets/images/triangle-opened-small.png";
188 node.expanded = true;
271 me.node = new Object();
273 me.node.li = document.getElementById(navtree_id);
274 me.node.children_data = root_nodes;
275 me.node.children = new Array();
276 me.node.children_ul = document.createElement("ul");
277 me.node.get_children_ul = function() { return me.node.children_ul; };
278 //me.node.children_ul.className = "children_ul";
279 me.node.li.appendChild(me.node.children_ul);
280 me.node.depth = 0;
282 get_node(me, me.node);
287 var mom = me.node;