Class Ext.tree.TreeNodeUI
Package: | Ext.tree |
Defined In: | TreeNodeUI.js |
Class: | TreeNodeUI |
Extends: | Object |
This class provides the default UI implementation for Ext TreeNodes.
The TreeNode UI implementation is separate from the
tree implementation, and allows customizing of the appearance of
tree nodes.
If you are customizing the Tree's user interface, you
may need to extend this class, but you should never need to instantiate this class.
This class provides access to the user interface components of an Ext TreeNode, through
Ext.tree.TreeNode.getUI
Public Properties
This class has no public properties.
Public Methods
|
addClass( String/Array className ) : void
Adds one or more CSS classes to the node's UI element.
Duplicate classes are automatically filtered out.
Adds one or more CSS classes to the node's UI element.
Duplicate classes are automatically filtered out.
|
TreeNodeUI |
|
getAnchor() : HtmlElement
Returns the <a> element that provides focus for the node's UI.
Returns the <a> element that provides focus for the node's UI.
Parameters:
Returns:
HtmlElement The DOM anchor element.
|
TreeNodeUI |
|
getIconEl() : HtmlElement
Returns the icon <img> element.
Returns the icon <img> element.
Parameters:
Returns:
HtmlElement The DOM image element.
|
TreeNodeUI |
|
getTextEl() : HtmlNode
Returns the text node.
Returns the text node.
Parameters:
Returns:
HtmlNode The DOM text node.
|
TreeNodeUI |
|
hide() : void
|
TreeNodeUI |
|
isChecked() : Boolean
Returns the checked status of the node. If the node was rendered with no
checkbox, it returns false.
Returns the checked status of the node. If the node was rendered with no
checkbox, it returns false.
|
TreeNodeUI |
|
removeClass( String/Array className ) : void
Removes one or more CSS classes from the node's UI element.
Removes one or more CSS classes from the node's UI element.
|
TreeNodeUI |
|
show() : void
|
TreeNodeUI |
|
toggleCheck( Boolean (optional) ) : void
Sets the checked status of the tree node to the passed value, or, if no value was passed,
toggles the checked status....
Sets the checked status of the tree node to the passed value, or, if no value was passed,
toggles the checked status. If the node was rendered with no checkbox, this has no effect.
Parameters:
(optional) : BooleanThe new checked status.
Returns:
|
TreeNodeUI |
Public Events
This class has no public events.