|
YAACC - UPNP Client and Server
|
Manager class for TreeNodes to easily apply operations on them and to make it easy for testing and extending. More...

Classes | |
| class | Change |
| What a change of the visible list did, so the adapter can report exactly that range. | |
Public Member Functions | |
| TreeNodeManager () | |
| Simple constructor. | |
| void | setTreeNodes (List< TreeNode > treeNodes) |
| Set the current visible tree nodes. | |
| List< TreeNode > | getTreeNodes () |
| Get the Current visible Tree nodes. | |
| TreeNode | get (int index) |
| Get TreeNode from the current nodes by index. | |
| boolean | addNode (TreeNode node) |
| Add new node to the current tree nodes. | |
| void | updateNodes (List< TreeNode > newNodes) |
| Clear the current nodes and insert new nodes. | |
| boolean | removeNode (TreeNode node) |
| Delete one node from the visible nodes. | |
| void | clearNodes () |
| Clear the current nodes. | |
| int | size () |
| Get the current number of visible nodes. | |
| int | indexOf (TreeNode node) |
| int | collapseNode (TreeNode node) |
| Collapsing node and all of his children. | |
| Change | collapse (TreeNode node) |
| Collapses the node: its children and the visible descendants of its expanded children leave the visible list. | |
| int | expandNode (TreeNode node) |
| Expanding node and all of his children. | |
| Change | expand (TreeNode node) |
| Expands the node: its children and the visible descendants of its expanded children are inserted behind it in one block. | |
| Change | removeWithDescendants (TreeNode node) |
| Removes the node from the visible list together with its visible descendants. | |
| int | collapseNodeBranch (TreeNode node) |
| int | expandNodeBranch (TreeNode node) |
| Expanding node full branches. | |
| void | expandNodeToLevel (TreeNode node, int level) |
| Expanding one node branch to until specific level. | |
| void | expandNodesAtLevel (int level) |
| Expanding all tree nodes branches to until specific level. | |
| void | collapseAll () |
| Collapsing all nodes in the tree with their children. | |
| void | expandAll () |
| Expanding all nodes in the tree with their children. | |
Manager class for TreeNodes to easily apply operations on them and to make it easy for testing and extending.
| boolean de.yaacc.upnp.server.configuration.TreeNodeManager.addNode | ( | TreeNode | node | ) |
Add new node to the current tree nodes.
| node | to add it to the current tree nodes |
| Change de.yaacc.upnp.server.configuration.TreeNodeManager.collapse | ( | TreeNode | node | ) |
Collapses the node: its children and the visible descendants of its expanded children leave the visible list.
Descendants keep their own expanded state, so expanding the node again restores them.
count 0 if the node is not visible or not expanded) Referenced by de.yaacc.upnp.server.configuration.TreeNodeManager.collapseNode(), and de.yaacc.upnp.server.configuration.TreeViewAdapter.collapseNode().

| int de.yaacc.upnp.server.configuration.TreeNodeManager.collapseNode | ( | TreeNode | node | ) |
Collapsing node and all of his children.
| node | The node to collapse it |

| int de.yaacc.upnp.server.configuration.TreeNodeManager.collapseNodeBranch | ( | TreeNode | node | ) |
| node | The node to collapse the branch of it |
Referenced by de.yaacc.upnp.server.configuration.TreeNodeManager.collapseAll(), and de.yaacc.upnp.server.configuration.TreeNodeManager.collapseNodeBranch().


| Change de.yaacc.upnp.server.configuration.TreeNodeManager.expand | ( | TreeNode | node | ) |
Expands the node: its children and the visible descendants of its expanded children are inserted behind it in one block.
count 0 if the node is not visible or already expanded) Referenced by de.yaacc.upnp.server.configuration.TreeNodeManager.expandNode(), and de.yaacc.upnp.server.configuration.TreeViewAdapter.expandNode().

| int de.yaacc.upnp.server.configuration.TreeNodeManager.expandNode | ( | TreeNode | node | ) |
Expanding node and all of his children.
| node | The node to expand it |
Referenced by de.yaacc.upnp.server.configuration.TreeNodeManager.expandNodeToLevel().


| int de.yaacc.upnp.server.configuration.TreeNodeManager.expandNodeBranch | ( | TreeNode | node | ) |
Expanding node full branches.
| node | The node to expand the branch of it |
Referenced by de.yaacc.upnp.server.configuration.TreeNodeManager.expandAll(), and de.yaacc.upnp.server.configuration.TreeNodeManager.expandNodeBranch().


| void de.yaacc.upnp.server.configuration.TreeNodeManager.expandNodesAtLevel | ( | int | level | ) |
Expanding all tree nodes branches to until specific level.
| level | to expand all nodes branches to it |

| void de.yaacc.upnp.server.configuration.TreeNodeManager.expandNodeToLevel | ( | TreeNode | node, |
| int | level ) |
Expanding one node branch to until specific level.
| node | to expand branch of it until level |
| level | to expand node branches to it |
Referenced by de.yaacc.upnp.server.configuration.TreeNodeManager.expandNodesAtLevel(), and de.yaacc.upnp.server.configuration.TreeNodeManager.expandNodeToLevel().


| TreeNode de.yaacc.upnp.server.configuration.TreeNodeManager.get | ( | int | index | ) |
| List< TreeNode > de.yaacc.upnp.server.configuration.TreeNodeManager.getTreeNodes | ( | ) |
Get the Current visible Tree nodes.
| int de.yaacc.upnp.server.configuration.TreeNodeManager.indexOf | ( | TreeNode | node | ) |
Referenced by de.yaacc.upnp.server.configuration.TreeViewAdapter.notifyNodeChanged().

| boolean de.yaacc.upnp.server.configuration.TreeNodeManager.removeNode | ( | TreeNode | node | ) |
Delete one node from the visible nodes.
| node | to delete it from the current nodes |
| Change de.yaacc.upnp.server.configuration.TreeNodeManager.removeWithDescendants | ( | TreeNode | node | ) |
Removes the node from the visible list together with its visible descendants.
count 0 if it is not visible) Referenced by de.yaacc.upnp.server.configuration.TreeViewAdapter.removeNode().

| void de.yaacc.upnp.server.configuration.TreeNodeManager.setTreeNodes | ( | List< TreeNode > | treeNodes | ) |
Set the current visible tree nodes.
| treeNodes | New tree nodes |
| int de.yaacc.upnp.server.configuration.TreeNodeManager.size | ( | ) |
Get the current number of visible nodes.
| void de.yaacc.upnp.server.configuration.TreeNodeManager.updateNodes | ( | List< TreeNode > | newNodes | ) |
Clear the current nodes and insert new nodes.
| newNodes | to update the current nodes with them |
Referenced by de.yaacc.upnp.server.configuration.TreeNodeManager.collapseAll(), and de.yaacc.upnp.server.configuration.TreeViewAdapter.updateTreeNodes().
