Simple status box for the sidebar.
[elgg_plugins.git] / yui / docs / RootNode.js.html
blobc3bbd83ba472032b7b996876a196e42e5b6c6761
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>API: treeview RootNode.js (YUI Library)</title>
5 <link rel="stylesheet" type="text/css" href="assets/api.css">
6 </head>
8 <body id="yahoo-com">
9 <div id="doc3" class="yui-t2">
11 <div id="hd">
12 <h1>Yahoo! UI Library</h1>
13 <h3>TreeView Widget&nbsp; <span class="subtitle">2.2.0</span></h3>
14 <p>
15 <a href="./index.html">Yahoo! UI Library</a>
16 &gt; <a href="./module_treeview.html">treeview</a>
18 &gt; RootNode.js (source view)
19 </p>
20 </div>
22 <div id="bd">
23 <div id="yui-main">
24 <div class="yui-b">
26 <div id="srcout">
27 <div class="highlight" ><pre><span class="c">/**</span>
28 <span class="c"> * A custom YAHOO.widget.Node that handles the unique nature of </span>
29 <span class="c"> * the virtual, presentationless root node.</span>
30 <span class="c"> * @namespace YAHOO.widget</span>
31 <span class="c"> * @class RootNode</span>
32 <span class="c"> * @extends YAHOO.widget.Node</span>
33 <span class="c"> * @param oTree {YAHOO.widget.TreeView} The tree instance this node belongs to</span>
34 <span class="c"> * @constructor</span>
35 <span class="c"> */</span>
36 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">RootNode</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">oTree</span><span class="o">)</span> <span class="o">{</span>
37 <span class="c">// Initialize the node with null params. The root node is a</span>
38 <span class="c"></span> <span class="c">// special case where the node has no presentation. So we have</span>
39 <span class="c"></span> <span class="c">// to alter the standard properties a bit.</span>
40 <span class="c"></span> <span class="k">this</span><span class="o">.</span><span class="nx">init</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="kc">null</span><span class="o">,</span> <span class="kc">true</span><span class="o">);</span>
42 <span class="c">/*</span>
43 <span class="c"> * For the root node, we get the tree reference from as a param</span>
44 <span class="c"> * to the constructor instead of from the parent element.</span>
45 <span class="c"> */</span>
46 <span class="k">this</span><span class="o">.</span><span class="nx">tree</span> <span class="o">=</span> <span class="nx">oTree</span><span class="o">;</span>
47 <span class="o">};</span>
49 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">extend</span><span class="o">(</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">RootNode</span><span class="o">,</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Node</span><span class="o">,</span> <span class="o">{</span>
51 <span class="c">// overrides YAHOO.widget.Node</span>
52 <span class="c"></span> <span class="nx">getNodeHtml</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
53 <span class="k">return</span> <span class="s2">&quot;&quot;</span><span class="o">;</span>
54 <span class="o">},</span>
56 <span class="nx">toString</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
57 <span class="k">return</span> <span class="s2">&quot;RootNode&quot;</span><span class="o">;</span>
58 <span class="o">},</span>
60 <span class="nx">loadComplete</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
61 <span class="k">this</span><span class="o">.</span><span class="nx">tree</span><span class="o">.</span><span class="nx">draw</span><span class="o">();</span>
62 <span class="o">},</span>
64 <span class="nx">collapse</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{},</span>
65 <span class="nx">expand</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{}</span>
67 <span class="o">});</span>
68 </pre></div>
69 </div>
70 </div>
71 </div>
72 <div class="yui-b">
73 <div class="nav">
75 <div class="module">
76 <h4>Modules</h4>
77 <ul class="content">
79 <li class=""><a href="module_animation.html">animation</a></li>
81 <li class=""><a href="module_autocomplete.html">autocomplete</a></li>
83 <li class=""><a href="module_button.html">button</a></li>
85 <li class=""><a href="module_calendar.html">calendar</a></li>
87 <li class=""><a href="module_connection.html">connection</a></li>
89 <li class=""><a href="module_container.html">container</a></li>
91 <li class=""><a href="module_datasource.html">datasource</a></li>
93 <li class=""><a href="module_datatable.html">datatable</a></li>
95 <li class=""><a href="module_dom.html">dom</a></li>
97 <li class=""><a href="module_dragdrop.html">dragdrop</a></li>
99 <li class=""><a href="module_element.html">element</a></li>
101 <li class=""><a href="module_event.html">event</a></li>
103 <li class=""><a href="module_history.html">history</a></li>
105 <li class=""><a href="module_logger.html">logger</a></li>
107 <li class=""><a href="module_menu.html">menu</a></li>
109 <li class=""><a href="module_slider.html">slider</a></li>
111 <li class=""><a href="module_tabview.html">tabview</a></li>
113 <li class="selected"><a href="module_treeview.html">treeview</a></li>
115 <li class=""><a href="module_yahoo.html">yahoo</a></li>
116 </ul>
117 </div>
119 <div class="module">
120 <h4>Classes</h4>
121 <ul class="content">
122 <li class=""><a href="YAHOO.widget.HTMLNode.html">YAHOO.widget.HTMLNode</a></li>
123 <li class=""><a href="YAHOO.widget.MenuNode.html">YAHOO.widget.MenuNode</a></li>
124 <li class=""><a href="YAHOO.widget.Node.html">YAHOO.widget.Node</a></li>
125 <li class=""><a href="YAHOO.widget.RootNode.html">YAHOO.widget.RootNode</a></li>
126 <li class=""><a href="YAHOO.widget.TextNode.html">YAHOO.widget.TextNode</a></li>
127 <li class=""><a href="YAHOO.widget.TreeView.html">YAHOO.widget.TreeView</a></li>
128 <li class=""><a href="YAHOO.widget.TVAnim.html">YAHOO.widget.TVAnim</a></li>
129 <li class=""><a href="YAHOO.widget.TVFadeIn.html">YAHOO.widget.TVFadeIn</a></li>
130 <li class=""><a href="YAHOO.widget.TVFadeOut.html">YAHOO.widget.TVFadeOut</a></li>
131 </ul>
132 </div>
134 <div class="module">
135 <h4>Files</h4>
136 <ul class="content">
137 <li class=""><a href="HTMLNode.js.html">HTMLNode.js</a></li>
138 <li class=""><a href="MenuNode.js.html">MenuNode.js</a></li>
139 <li class=""><a href="Node.js.html">Node.js</a></li>
140 <li class="selected"><a href="RootNode.js.html">RootNode.js</a></li>
141 <li class=""><a href="TextNode.js.html">TextNode.js</a></li>
142 <li class=""><a href="TreeView.js.html">TreeView.js</a></li>
143 <li class=""><a href="TVAnim.js.html">TVAnim.js</a></li>
144 <li class=""><a href="TVFadeIn.js.html">TVFadeIn.js</a></li>
145 <li class=""><a href="TVFadeOut.js.html">TVFadeOut.js</a></li>
146 </ul>
147 </div>
153 </div>
154 </div>
155 </div>
156 <div id="ft">
157 <hr />
158 Copyright &copy; 2007 Yahoo! Inc. All rights reserved.
159 </div>
160 </div>
161 </body>
162 </html>