Extends: Jx.TreeItem
A Jx.TreeFolder is an item in a tree that can contain other items. It is expandable and collapsible.
Copyright © 2008, DM Solutions Group Inc.
This file is licensed under an MIT style license
| Jx. | Extends: Jx.TreeItem |
| Properties | |
| subDomObj | {HTMLElement} an HTML container for the things inside the folder |
| nodes | {Array} an array of references to the javascript objects that are children of this folder |
| Options | |
| open | is the folder open? |
| Constructor | |
| Jx. | Create a new instance of Jx.TreeFolder |
| Functions | |
| finalize | Clean up a TreeFolder. |
| finalizeFolder | Internal method to clean up folder-related stuff. |
| clone | Create a clone of the TreeFolder |
| isLastNode | Indicates if a node is the last thing in the folder. |
| update | Update the CSS of the TreeFolder’s DOM element in case it has changed position. |
| append | append a node at the end of the sub-tree |
| insert | insert a node after refNode. |
| remove | remove the specified node from the tree |
| replace | Replace a node with another node |
| clicked | handle the user clicking on this folder by expanding or collapsing it. |
| expand | Expands the folder |
| collapse | Collapses the folder |
| findChild | Get a reference to a child node by recursively searching the tree |
Create a new instance of Jx.TreeFolder
| options | Jx.TreeFolder.Options and Jx.TreeItem.Options |
Clean up a TreeFolder.
finalize: function()
Internal method to clean up folder-related stuff.
finalizeFolder: function()
Create a clone of the TreeFolder
clone : function()
Indicates if a node is the last thing in the folder.
isLastNode : function( node )
Update the CSS of the TreeFolder’s DOM element in case it has changed position.
update : function( shouldDescend )
append a node at the end of the sub-tree
append : function( node )
insert a node after refNode.
insert : function( node, refNode )
remove the specified node from the tree
remove : function( node )
Replace a node with another node
replace: function( newNode, refNode )
handle the user clicking on this folder by expanding or collapsing it.
clicked : function( e )
Expands the folder
expand : function()
Collapses the folder
collapse : function()
Get a reference to a child node by recursively searching the tree
findChild : function( path )