0355146a9b5ebabb24beeeb6eca0d71c90370663.svn-base 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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="../src/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. <div class="hr"></div>
  27. <a id="Ext.tree.TreeNodeUI-props"></a>
  28. <h2>Public Properties</h2>
  29. <div class="no-members">This class has no public properties.</div> <a id="Ext.tree.TreeNodeUI-methods"></a>
  30. <h2>Public Methods</h2>
  31. <table cellspacing="0" class="member-table">
  32. <tr>
  33. <th class="sig-header" colspan="2">Method</th>
  34. <th class="msource-header">Defined By</th>
  35. </tr>
  36. <tr class="method-row expandable">
  37. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  38. <td class="sig">
  39. <a id="Ext.tree.TreeNodeUI-addClass"></a>
  40. <b>addClass</b>(&nbsp;<code>String/Array className</code>&nbsp;) : void <div class="mdesc">
  41. <div class="short">Adds one or more CSS classes to the node's UI element.
  42. Duplicate classes are automatically filtered out.</div>
  43. <div class="long">
  44. Adds one or more CSS classes to the node's UI element.
  45. Duplicate classes are automatically filtered out. <div class="mdetail-params">
  46. <strong>Parameters:</strong>
  47. <ul><li><code>className</code> : String/Array<div class="sub-desc">The CSS class to add, or an array of classes</div></li> </ul>
  48. <strong>Returns:</strong>
  49. <ul>
  50. <li><code>void</code></li>
  51. </ul>
  52. </div>
  53. </div>
  54. </div>
  55. </td>
  56. <td class="msource">TreeNodeUI</td>
  57. </tr>
  58. <tr class="method-row alt expandable">
  59. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  60. <td class="sig">
  61. <a id="Ext.tree.TreeNodeUI-getAnchor"></a>
  62. <b>getAnchor</b>() : HtmlElement <div class="mdesc">
  63. <div class="short">Returns the &lt;a> element that provides focus for the node's UI.</div>
  64. <div class="long">
  65. Returns the &lt;a> element that provides focus for the node's UI. <div class="mdetail-params">
  66. <strong>Parameters:</strong>
  67. <ul><li>None.</li> </ul>
  68. <strong>Returns:</strong>
  69. <ul>
  70. <li><code>HtmlElement</code><div class="sub-desc">The DOM anchor element.</div></li>
  71. </ul>
  72. </div>
  73. </div>
  74. </div>
  75. </td>
  76. <td class="msource">TreeNodeUI</td>
  77. </tr>
  78. <tr class="method-row expandable">
  79. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  80. <td class="sig">
  81. <a id="Ext.tree.TreeNodeUI-getIconEl"></a>
  82. <b>getIconEl</b>() : HtmlElement <div class="mdesc">
  83. <div class="short">Returns the icon &lt;img> element.</div>
  84. <div class="long">
  85. Returns the icon &lt;img> element. <div class="mdetail-params">
  86. <strong>Parameters:</strong>
  87. <ul><li>None.</li> </ul>
  88. <strong>Returns:</strong>
  89. <ul>
  90. <li><code>HtmlElement</code><div class="sub-desc">The DOM image element.</div></li>
  91. </ul>
  92. </div>
  93. </div>
  94. </div>
  95. </td>
  96. <td class="msource">TreeNodeUI</td>
  97. </tr>
  98. <tr class="method-row alt expandable">
  99. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  100. <td class="sig">
  101. <a id="Ext.tree.TreeNodeUI-getTextEl"></a>
  102. <b>getTextEl</b>() : HtmlNode <div class="mdesc">
  103. <div class="short">Returns the text node.</div>
  104. <div class="long">
  105. Returns the text node. <div class="mdetail-params">
  106. <strong>Parameters:</strong>
  107. <ul><li>None.</li> </ul>
  108. <strong>Returns:</strong>
  109. <ul>
  110. <li><code>HtmlNode</code><div class="sub-desc">The DOM text node.</div></li>
  111. </ul>
  112. </div>
  113. </div>
  114. </div>
  115. </td>
  116. <td class="msource">TreeNodeUI</td>
  117. </tr>
  118. <tr class="method-row expandable">
  119. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  120. <td class="sig">
  121. <a id="Ext.tree.TreeNodeUI-hide"></a>
  122. <b>hide</b>() : void <div class="mdesc">
  123. <div class="short">Hides this node.</div>
  124. <div class="long">
  125. Hides this node. <div class="mdetail-params">
  126. <strong>Parameters:</strong>
  127. <ul><li>None.</li> </ul>
  128. <strong>Returns:</strong>
  129. <ul>
  130. <li><code>void</code></li>
  131. </ul>
  132. </div>
  133. </div>
  134. </div>
  135. </td>
  136. <td class="msource">TreeNodeUI</td>
  137. </tr>
  138. <tr class="method-row alt expandable">
  139. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  140. <td class="sig">
  141. <a id="Ext.tree.TreeNodeUI-isChecked"></a>
  142. <b>isChecked</b>() : Boolean <div class="mdesc">
  143. <div class="short">Returns the checked status of the node. If the node was rendered with no
  144. checkbox, it returns false.</div>
  145. <div class="long">
  146. Returns the checked status of the node. If the node was rendered with no
  147. checkbox, it returns false. <div class="mdetail-params">
  148. <strong>Parameters:</strong>
  149. <ul><li>None.</li> </ul>
  150. <strong>Returns:</strong>
  151. <ul>
  152. <li><code>Boolean</code><div class="sub-desc">The checked flag.</div></li>
  153. </ul>
  154. </div>
  155. </div>
  156. </div>
  157. </td>
  158. <td class="msource">TreeNodeUI</td>
  159. </tr>
  160. <tr class="method-row expandable">
  161. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  162. <td class="sig">
  163. <a id="Ext.tree.TreeNodeUI-removeClass"></a>
  164. <b>removeClass</b>(&nbsp;<code>String/Array className</code>&nbsp;) : void <div class="mdesc">
  165. <div class="short">Removes one or more CSS classes from the node's UI element.</div>
  166. <div class="long">
  167. Removes one or more CSS classes from the node's UI element. <div class="mdetail-params">
  168. <strong>Parameters:</strong>
  169. <ul><li><code>className</code> : String/Array<div class="sub-desc">The CSS class to remove, or an array of classes</div></li> </ul>
  170. <strong>Returns:</strong>
  171. <ul>
  172. <li><code>void</code></li>
  173. </ul>
  174. </div>
  175. </div>
  176. </div>
  177. </td>
  178. <td class="msource">TreeNodeUI</td>
  179. </tr>
  180. <tr class="method-row alt expandable">
  181. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  182. <td class="sig">
  183. <a id="Ext.tree.TreeNodeUI-show"></a>
  184. <b>show</b>() : void <div class="mdesc">
  185. <div class="short">Shows this node.</div>
  186. <div class="long">
  187. Shows this node. <div class="mdetail-params">
  188. <strong>Parameters:</strong>
  189. <ul><li>None.</li> </ul>
  190. <strong>Returns:</strong>
  191. <ul>
  192. <li><code>void</code></li>
  193. </ul>
  194. </div>
  195. </div>
  196. </div>
  197. </td>
  198. <td class="msource">TreeNodeUI</td>
  199. </tr>
  200. <tr class="method-row expandable">
  201. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  202. <td class="sig">
  203. <a id="Ext.tree.TreeNodeUI-toggleCheck"></a>
  204. <b>toggleCheck</b>(&nbsp;<code>Boolean (optional)</code>&nbsp;) : void <div class="mdesc">
  205. <div class="short">Sets the checked status of the tree node to the passed value, or, if no value was passed,
  206. toggles the checked status....</div>
  207. <div class="long">
  208. Sets the checked status of the tree node to the passed value, or, if no value was passed,
  209. toggles the checked status. If the node was rendered with no checkbox, this has no effect. <div class="mdetail-params">
  210. <strong>Parameters:</strong>
  211. <ul><li><code>(optional)</code> : Boolean<div class="sub-desc">The new checked status.</div></li> </ul>
  212. <strong>Returns:</strong>
  213. <ul>
  214. <li><code>void</code></li>
  215. </ul>
  216. </div>
  217. </div>
  218. </div>
  219. </td>
  220. <td class="msource">TreeNodeUI</td>
  221. </tr>
  222. </table>
  223. <a id="Ext.tree.TreeNodeUI-events"></a>
  224. <h2>Public Events</h2>
  225. <div class="no-members">This class has no public events.</div>
  226. </div>