Method Summary |
|
native public void | addListener(TreeNodeListener listener) Adds a TreeNode listener. |
native public TreeNode | cloneNode() Clones this TreeNode. |
native public TreeNode | cloneNode(TreeNode config) Clones this TreeNode applying the specified configuration to the cloned node. |
native public void | collapse() Collapse this node. |
native public void | collapse(boolean deep, boolean anim) Collapse this node. |
native public void | collapseChildNodes(boolean deep) Collapse all child nodes. |
native protected JavaScriptObject | create(JavaScriptObject config) |
protected Node | createNode(JavaScriptObject jsNode) |
native public void | disable() Disables this node. |
native public void | enable() Enables this node. |
native public void | ensureVisible() Ensures all parent nodes are expanded. |
native public void | expand() Expand this node. |
native public void | expand(boolean deep, boolean anim) Expand this node. |
native public void | expand(boolean deep, boolean anim, Function callback) Expand this node. |
native public void | expandChildNodes(boolean deep) Expand all child nodes. |
public String | getIconCls() |
native public String | getText() Return the nodes text. |
native public TreeNodeUI | getUI() Returns the UI object for this node. |
public static Node | instance(JavaScriptObject jsObj) |
native public boolean | isDisabled() True if this node is disabled. |
native public boolean | isExpanded() Returns true if this node is expanded. |
native public boolean | isSelected() Returns true if this node is selected. |
public void | select() Triggers selection of this node. |
public void | setAllowDrag(boolean allowDrag) False to make this node undraggable if DD is on (defaults to true). |
public void | setAllowDrop(boolean allowDrop) False if this node cannot be drop on. |
public void | setChecked(boolean checked) True to render a checked checkbox for this node, false to render an unchecked checkbox
(defaults to undefined with no checkbox rendered). |
public void | setCls(String cls) A CSS class to be added to the node. |
public void | setDisabled(boolean disabled) |
public void | setExpanded(boolean expanded) |
public void | setHref(String href) URL of the link used for the node (defaults to #). |
public void | setHrefTarget(String hrefTarget) |
public void | setIcon(String icon) The path to an icon for the node. |
public void | setIconCls(String iconCls) A css class to be added to the nodes icon element for applying css background images. |
public void | setLeaf(Node leaf) True if this node is a leaf and does not have children. |
public void | setSingleClickExpand(boolean singleClickExpand) True for single click expand on this node. |
public void | setText(String text) The text for this node. |
public void | setTooltip(String qtip) Set a Tree node tooltip. |
public void | setTooltip(QuickTipsConfig qtipConfig) Set a Tree node tooltip. |
native public void | toggle() Toggles expanded/collapsed state of the node. |
native public void | unselect() Triggers deselection of this node. |