2 |
aperonnet |
1 |
<div class="body-wrap">
|
|
|
2 |
<div class="top-tools">
|
|
|
3 |
<a class="inner-link" href="#Ext.tree.TreeNodeUI-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
|
|
|
4 |
<a class="inner-link" href="#Ext.tree.TreeNodeUI-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
|
|
|
5 |
<a class="inner-link" href="#Ext.tree.TreeNodeUI-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
|
|
|
6 |
<a class="bookmark" href="../docs/?class=Ext.tree.TreeNodeUI"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
|
|
|
7 |
</div>
|
|
|
8 |
<h1>Class Ext.tree.TreeNodeUI</h1>
|
|
|
9 |
<table cellspacing="0">
|
|
|
10 |
<tr><td class="label">Package:</td><td class="hd-info">Ext.tree</td></tr>
|
|
|
11 |
<tr><td class="label">Defined In:</td><td class="hd-info"><a href="../source/widgets/tree/TreeNodeUI.js" target="_blank">TreeNodeUI.js</a></td></tr>
|
|
|
12 |
<tr><td class="label">Class:</td><td class="hd-info">TreeNodeUI</td></tr>
|
|
|
13 |
<tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr>
|
|
|
14 |
</table>
|
|
|
15 |
<div class="description">
|
|
|
16 |
This class provides the default UI implementation for Ext TreeNodes.
|
|
|
17 |
The TreeNode UI implementation is separate from the
|
|
|
18 |
tree implementation, and allows customizing of the appearance of
|
|
|
19 |
tree nodes.<br>
|
|
|
20 |
<p>
|
|
|
21 |
If you are customizing the Tree's user interface, you
|
|
|
22 |
may need to extend this class, but you should never need to instantiate this class.<br>
|
|
|
23 |
<p>
|
|
|
24 |
This class provides access to the user interface components of an Ext TreeNode, through
|
|
|
25 |
<a ext:cls="Ext.tree.TreeNode" ext:member="getUI" href="output/Ext.tree.TreeNode.html#getUI">Ext.tree.TreeNode.getUI</a> </div>
|
|
|
26 |
|
|
|
27 |
<div class="hr"></div>
|
|
|
28 |
<a id="Ext.tree.TreeNodeUI-props"></a>
|
|
|
29 |
<h2>Public Properties</h2>
|
|
|
30 |
<div class="no-members">This class has no public properties.</div> <a id="Ext.tree.TreeNodeUI-methods"></a>
|
|
|
31 |
<h2>Public Methods</h2>
|
|
|
32 |
<table cellspacing="0" class="member-table">
|
|
|
33 |
<tr>
|
|
|
34 |
<th class="sig-header" colspan="2">Method</th>
|
|
|
35 |
<th class="msource-header">Defined By</th>
|
|
|
36 |
</tr>
|
|
|
37 |
<tr class="method-row expandable">
|
|
|
38 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
39 |
<td class="sig">
|
|
|
40 |
<a id="Ext.tree.TreeNodeUI-addClass"></a>
|
|
|
41 |
<b>addClass</b>( <code>String/Array className</code> ) : void <div class="mdesc">
|
|
|
42 |
<div class="short">Adds one or more CSS classes to the node's UI element.
|
|
|
43 |
Duplicate classes are automatically filtered out.</div>
|
|
|
44 |
<div class="long">
|
|
|
45 |
Adds one or more CSS classes to the node's UI element.
|
|
|
46 |
Duplicate classes are automatically filtered out. <div class="mdetail-params">
|
|
|
47 |
<strong>Parameters:</strong>
|
|
|
48 |
<ul><li><code>className</code> : String/Array<div class="sub-desc">The CSS class to add, or an array of classes</div></li> </ul>
|
|
|
49 |
<strong>Returns:</strong>
|
|
|
50 |
<ul>
|
|
|
51 |
<li><code>void</code></li>
|
|
|
52 |
</ul>
|
|
|
53 |
</div>
|
|
|
54 |
</div>
|
|
|
55 |
</div>
|
|
|
56 |
</td>
|
|
|
57 |
<td class="msource">TreeNodeUI</td>
|
|
|
58 |
</tr>
|
|
|
59 |
<tr class="method-row alt expandable">
|
|
|
60 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
61 |
<td class="sig">
|
|
|
62 |
<a id="Ext.tree.TreeNodeUI-getAnchor"></a>
|
|
|
63 |
<b>getAnchor</b>() : HtmlElement <div class="mdesc">
|
|
|
64 |
<div class="short">Returns the <a> element that provides focus for the node's UI.</div>
|
|
|
65 |
<div class="long">
|
|
|
66 |
Returns the <a> element that provides focus for the node's UI. <div class="mdetail-params">
|
|
|
67 |
<strong>Parameters:</strong>
|
|
|
68 |
<ul><li>None.</li> </ul>
|
|
|
69 |
<strong>Returns:</strong>
|
|
|
70 |
<ul>
|
|
|
71 |
<li><code>HtmlElement</code><div class="sub-desc">The DOM anchor element.</div></li>
|
|
|
72 |
</ul>
|
|
|
73 |
</div>
|
|
|
74 |
</div>
|
|
|
75 |
</div>
|
|
|
76 |
</td>
|
|
|
77 |
<td class="msource">TreeNodeUI</td>
|
|
|
78 |
</tr>
|
|
|
79 |
<tr class="method-row expandable">
|
|
|
80 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
81 |
<td class="sig">
|
|
|
82 |
<a id="Ext.tree.TreeNodeUI-getIconEl"></a>
|
|
|
83 |
<b>getIconEl</b>() : HtmlElement <div class="mdesc">
|
|
|
84 |
<div class="short">Returns the icon <img> element.</div>
|
|
|
85 |
<div class="long">
|
|
|
86 |
Returns the icon <img> element. <div class="mdetail-params">
|
|
|
87 |
<strong>Parameters:</strong>
|
|
|
88 |
<ul><li>None.</li> </ul>
|
|
|
89 |
<strong>Returns:</strong>
|
|
|
90 |
<ul>
|
|
|
91 |
<li><code>HtmlElement</code><div class="sub-desc">The DOM image element.</div></li>
|
|
|
92 |
</ul>
|
|
|
93 |
</div>
|
|
|
94 |
</div>
|
|
|
95 |
</div>
|
|
|
96 |
</td>
|
|
|
97 |
<td class="msource">TreeNodeUI</td>
|
|
|
98 |
</tr>
|
|
|
99 |
<tr class="method-row alt expandable">
|
|
|
100 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
101 |
<td class="sig">
|
|
|
102 |
<a id="Ext.tree.TreeNodeUI-getTextEl"></a>
|
|
|
103 |
<b>getTextEl</b>() : HtmlNode <div class="mdesc">
|
|
|
104 |
<div class="short">Returns the text node.</div>
|
|
|
105 |
<div class="long">
|
|
|
106 |
Returns the text node. <div class="mdetail-params">
|
|
|
107 |
<strong>Parameters:</strong>
|
|
|
108 |
<ul><li>None.</li> </ul>
|
|
|
109 |
<strong>Returns:</strong>
|
|
|
110 |
<ul>
|
|
|
111 |
<li><code>HtmlNode</code><div class="sub-desc">The DOM text node.</div></li>
|
|
|
112 |
</ul>
|
|
|
113 |
</div>
|
|
|
114 |
</div>
|
|
|
115 |
</div>
|
|
|
116 |
</td>
|
|
|
117 |
<td class="msource">TreeNodeUI</td>
|
|
|
118 |
</tr>
|
|
|
119 |
<tr class="method-row expandable">
|
|
|
120 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
121 |
<td class="sig">
|
|
|
122 |
<a id="Ext.tree.TreeNodeUI-hide"></a>
|
|
|
123 |
<b>hide</b>() : void <div class="mdesc">
|
|
|
124 |
<div class="short">Hides this node.</div>
|
|
|
125 |
<div class="long">
|
|
|
126 |
Hides this node. <div class="mdetail-params">
|
|
|
127 |
<strong>Parameters:</strong>
|
|
|
128 |
<ul><li>None.</li> </ul>
|
|
|
129 |
<strong>Returns:</strong>
|
|
|
130 |
<ul>
|
|
|
131 |
<li><code>void</code></li>
|
|
|
132 |
</ul>
|
|
|
133 |
</div>
|
|
|
134 |
</div>
|
|
|
135 |
</div>
|
|
|
136 |
</td>
|
|
|
137 |
<td class="msource">TreeNodeUI</td>
|
|
|
138 |
</tr>
|
|
|
139 |
<tr class="method-row alt expandable">
|
|
|
140 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
141 |
<td class="sig">
|
|
|
142 |
<a id="Ext.tree.TreeNodeUI-isChecked"></a>
|
|
|
143 |
<b>isChecked</b>() : Boolean <div class="mdesc">
|
|
|
144 |
<div class="short">Returns the checked status of the node. If the node was rendered with no
|
|
|
145 |
checkbox, it returns false.</div>
|
|
|
146 |
<div class="long">
|
|
|
147 |
Returns the checked status of the node. If the node was rendered with no
|
|
|
148 |
checkbox, it returns false. <div class="mdetail-params">
|
|
|
149 |
<strong>Parameters:</strong>
|
|
|
150 |
<ul><li>None.</li> </ul>
|
|
|
151 |
<strong>Returns:</strong>
|
|
|
152 |
<ul>
|
|
|
153 |
<li><code>Boolean</code><div class="sub-desc">The checked flag.</div></li>
|
|
|
154 |
</ul>
|
|
|
155 |
</div>
|
|
|
156 |
</div>
|
|
|
157 |
</div>
|
|
|
158 |
</td>
|
|
|
159 |
<td class="msource">TreeNodeUI</td>
|
|
|
160 |
</tr>
|
|
|
161 |
<tr class="method-row expandable">
|
|
|
162 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
163 |
<td class="sig">
|
|
|
164 |
<a id="Ext.tree.TreeNodeUI-removeClass"></a>
|
|
|
165 |
<b>removeClass</b>( <code>String/Array className</code> ) : void <div class="mdesc">
|
|
|
166 |
<div class="short">Removes one or more CSS classes from the node's UI element.</div>
|
|
|
167 |
<div class="long">
|
|
|
168 |
Removes one or more CSS classes from the node's UI element. <div class="mdetail-params">
|
|
|
169 |
<strong>Parameters:</strong>
|
|
|
170 |
<ul><li><code>className</code> : String/Array<div class="sub-desc">The CSS class to remove, or an array of classes</div></li> </ul>
|
|
|
171 |
<strong>Returns:</strong>
|
|
|
172 |
<ul>
|
|
|
173 |
<li><code>void</code></li>
|
|
|
174 |
</ul>
|
|
|
175 |
</div>
|
|
|
176 |
</div>
|
|
|
177 |
</div>
|
|
|
178 |
</td>
|
|
|
179 |
<td class="msource">TreeNodeUI</td>
|
|
|
180 |
</tr>
|
|
|
181 |
<tr class="method-row alt expandable">
|
|
|
182 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
183 |
<td class="sig">
|
|
|
184 |
<a id="Ext.tree.TreeNodeUI-show"></a>
|
|
|
185 |
<b>show</b>() : void <div class="mdesc">
|
|
|
186 |
<div class="short">Shows this node.</div>
|
|
|
187 |
<div class="long">
|
|
|
188 |
Shows this node. <div class="mdetail-params">
|
|
|
189 |
<strong>Parameters:</strong>
|
|
|
190 |
<ul><li>None.</li> </ul>
|
|
|
191 |
<strong>Returns:</strong>
|
|
|
192 |
<ul>
|
|
|
193 |
<li><code>void</code></li>
|
|
|
194 |
</ul>
|
|
|
195 |
</div>
|
|
|
196 |
</div>
|
|
|
197 |
</div>
|
|
|
198 |
</td>
|
|
|
199 |
<td class="msource">TreeNodeUI</td>
|
|
|
200 |
</tr>
|
|
|
201 |
<tr class="method-row expandable">
|
|
|
202 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
203 |
<td class="sig">
|
|
|
204 |
<a id="Ext.tree.TreeNodeUI-toggleCheck"></a>
|
|
|
205 |
<b>toggleCheck</b>( <code>Boolean (optional)</code> ) : void <div class="mdesc">
|
|
|
206 |
<div class="short">Sets the checked status of the tree node to the passed value, or, if no value was passed,
|
|
|
207 |
toggles the checked status....</div>
|
|
|
208 |
<div class="long">
|
|
|
209 |
Sets the checked status of the tree node to the passed value, or, if no value was passed,
|
|
|
210 |
toggles the checked status. If the node was rendered with no checkbox, this has no effect. <div class="mdetail-params">
|
|
|
211 |
<strong>Parameters:</strong>
|
|
|
212 |
<ul><li><code>(optional)</code> : Boolean<div class="sub-desc">The new checked status.</div></li> </ul>
|
|
|
213 |
<strong>Returns:</strong>
|
|
|
214 |
<ul>
|
|
|
215 |
<li><code>void</code></li>
|
|
|
216 |
</ul>
|
|
|
217 |
</div>
|
|
|
218 |
</div>
|
|
|
219 |
</div>
|
|
|
220 |
</td>
|
|
|
221 |
<td class="msource">TreeNodeUI</td>
|
|
|
222 |
</tr>
|
|
|
223 |
</table>
|
|
|
224 |
<a id="Ext.tree.TreeNodeUI-events"></a>
|
|
|
225 |
<h2>Public Events</h2>
|
|
|
226 |
<div class="no-members">This class has no public events.</div>
|
|
|
227 |
</div>
|