Lines Matching full:node
98 var node = new Object();
99 node.children = Array();
100 node.children_data = children_data;
101 node.depth = mom.depth + 1;
103 node.li = document.createElement("li");
104 mom.get_children_ul().appendChild(node.li);
106 node.label_div = document.createElement("div");
107 node.label_div.className = "label";
109 $(node.label_div).addClass("api");
110 $(node.label_div).addClass("api-level-"+api_level);
112 node.li.appendChild(node.label_div);
113 node.label_div.style.paddingLeft = 10*node.depth + "px";
117 node.label_div.style.paddingLeft = ((10*node.depth)+12) + "px";
119 node.label_div.style.paddingLeft = 10*node.depth + "px";
120 node.expand_toggle = document.createElement("a");
121 node.expand_toggle.href = "javascript:void(0)";
122 node.expand_toggle.onclick = function() {
123 if (node.expanded) {
124 $(node.get_children_ul()).slideUp("fast");
125 node.plus_img.src = me.toroot + "assets/images/triangle-closed-small.png";
126 node.expanded = false;
128 expand_node(me, node);
131 node.label_div.appendChild(node.expand_toggle);
133 node.plus_img = document.createElement("img");
134 node.plus_img.src = me.toroot + "assets/images/triangle-closed-small.png";
135 node.plus_img.className = "plus";
136 node.plus_img.border = "0";
137 node.expand_toggle.appendChild(node.plus_img);
139 node.expanded = false;
143 node.label_div.appendChild(a);
144 node.label = document.createTextNode(text);
145 a.appendChild(node.label);
152 a.onclick = node.expand_toggle.onclick;
156 node.expanded = false;
161 node.children_ul = null;
162 node.get_children_ul = function() {
163 if (!node.children_ul) {
164 node.children_ul = document.createElement("ul");
165 node.children_ul.className = "children_ul";
166 node.children_ul.style.display = "none";
167 node.li.appendChild(node.children_ul);
169 return node.children_ul;
172 return node;
175 function expand_node(me, node)
177 if (node.children_data && !node.expanded) {
178 if (node.children_visited) {
179 $(node.get_children_ul()).slideDown("fast");
181 get_node(me, node);
182 if ($(node.label_div).hasClass("absent")) $(node.get_children_ul()).addClass("absent");
183 $(node.get_children_ul()).slideDown("fast");
185 node.plus_img.src = me.toroot + "assets/images/triangle-opened-small.png";
186 node.expanded = true;
269 me.node = new Object();
271 me.node.li = document.getElementById(navtree_id);
272 me.node.children_data = root_nodes;
273 me.node.children = new Array();
274 me.node.children_ul = document.createElement("ul");
275 me.node.get_children_ul = function() { return me.node.children_ul; };
276 //me.node.children_ul.className = "children_ul";
277 me.node.li.appendChild(me.node.children_ul);
278 me.node.depth = 0;
280 get_node(me, me.node);
285 var mom = me.node;