TreeNode Manager
Almost all of the TreeNode manipulation features are implemented on TreeNodeManager, this help us to test, extend and change the implementation for some features if it needed.
By Default TreeViewAdapter depend on the Default TreeNodeManager class but if you want a custom implementation, you can easily create a new manager class that extend TreeNodeManager and pass it on TreeViewAdapter constructor
The TreeNodeManager class has many method to help easily provide features.
Set the current visible tree nodes
Get the Current visible Tree nodes
Get TreeNode by index
Add new TreeNode
Clear the current TreeNodes and add new TreeNodes
Remove TreeNode
Clear all TreeNodes
Get the current TreeNodes size
Collapsing TreeNode
Expanding TreeNode
Collapsing TreeNode full branch
Expanding TreeNode full branch
Expanding TreeNode branch until specific level
Expanding all tree nodes branches to until specific level
Collapsing all nodes in the tree with their children
Expanding all nodes in the tree with their children
If you want more information about them, please check the javadoc.