| java.lang.Object com.gwtext.client.core.JsObject com.gwtext.client.widgets.tree.TreeNodeUI
TreeNodeUI | public class TreeNodeUI extends JsObject (Code) | | This class provides the default UI implementation for TreeNodes. The TreeNode UI implementation is separate from the
tree implementation, and allows customizing of the appearance of tree nodes.
This class provides access to the user interface components of an TreeNode, through
TreeNode.getUI .
|
Constructor Summary | |
public | TreeNodeUI(JavaScriptObject jsObj) |
Method Summary | |
native public void | addClass(String cls) Adds one or more CSS classes to the node's UI element. | native public Element | getEl() This returns an element that represents the whole subtree starting with itselt as the
current node. | native public Element | getElNode() Element for 'this' node. | native public void | hide() Hides this node. | native public void | highlight() Highlight this node. | native public boolean | isChecked() Returns the checked status of the node. | native public void | removeClass(String cls) Removes one or more CSS classes from the node's UI element. | native public void | show() Shows this node. | native public void | toggleCheck() Sets the checked status of the tree node to the passed value, or, if no value was passed, toggles the checked status. | native public void | toggleCheck(boolean value) Sets the checked status of the tree node to the passed value, or, if no value was passed, toggles the checked status. |
TreeNodeUI | public TreeNodeUI(JavaScriptObject jsObj)(Code) | | |
addClass | native public void addClass(String cls)(Code) | | Adds one or more CSS classes to the node's UI element. Duplicate classes are automatically filtered out.
Parameters: cls - the CSS class |
getEl | native public Element getEl()(Code) | | This returns an element that represents the whole subtree starting with itselt as the
current node. The returned element has wtoe children. The first child represents its
node, and is what is returned when getElNode() is called. The second child containts
an array of its child elements.
the subtree element |
getElNode | native public Element getElNode()(Code) | | Element for 'this' node.
the underlying element for this node |
hide | native public void hide()(Code) | | Hides this node.
|
highlight | native public void highlight()(Code) | | Highlight this node.
|
isChecked | native public boolean isChecked()(Code) | | Returns the checked status of the node. If the node was rendered with no checkbox, it returns false.
true if checked |
removeClass | native public void removeClass(String cls)(Code) | | Removes one or more CSS classes from the node's UI element.
Parameters: cls - the CSS class to remove |
show | native public void show()(Code) | | Shows this node.
|
toggleCheck | native public void toggleCheck()(Code) | | 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.
|
toggleCheck | native public void toggleCheck(boolean value)(Code) | | 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: value - the new checkbox status |
Fields inherited from com.gwtext.client.core.JsObject | protected JavaScriptObject jsObj(Code)(Java Doc)
|
|
|