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...
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 | collapseNode (TreeNode node) |
Collapsing node and all of his children. | |
int | expandNode (TreeNode node) |
Expanding node and all of his children. | |
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.TreeNodeManager.addNode | ( | TreeNode | node | ) |
Add new node to the current tree nodes.
node | to add it to the current tree nodes |
int de.yaacc.upnp.server.TreeNodeManager.collapseNode | ( | TreeNode | node | ) |
Collapsing node and all of his children.
node | The node to collapse it |
Referenced by de.yaacc.upnp.server.TreeViewAdapter.collapseNode().
int de.yaacc.upnp.server.TreeNodeManager.collapseNodeBranch | ( | TreeNode | node | ) |
node | The node to collapse the branch of it |
Referenced by de.yaacc.upnp.server.TreeNodeManager.collapseAll(), de.yaacc.upnp.server.TreeNodeManager.collapseNodeBranch(), and de.yaacc.upnp.server.TreeViewAdapter.collapseNodeBranch().
int de.yaacc.upnp.server.TreeNodeManager.expandNode | ( | TreeNode | node | ) |
Expanding node and all of his children.
node | The node to expand it |
Referenced by de.yaacc.upnp.server.TreeViewAdapter.expandNode(), and de.yaacc.upnp.server.TreeNodeManager.expandNodeToLevel().
int de.yaacc.upnp.server.TreeNodeManager.expandNodeBranch | ( | TreeNode | node | ) |
Expanding node full branches.
node | The node to expand the branch of it |
Referenced by de.yaacc.upnp.server.TreeNodeManager.expandAll(), de.yaacc.upnp.server.TreeNodeManager.expandNodeBranch(), and de.yaacc.upnp.server.TreeViewAdapter.expandNodeBranch().
void de.yaacc.upnp.server.TreeNodeManager.expandNodesAtLevel | ( | int | level | ) |
Expanding all tree nodes branches to until specific level.
level | to expand all nodes branches to it |
Referenced by de.yaacc.upnp.server.TreeViewAdapter.expandNodesAtLevel().
void de.yaacc.upnp.server.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.TreeNodeManager.expandNodesAtLevel(), de.yaacc.upnp.server.TreeNodeManager.expandNodeToLevel(), and de.yaacc.upnp.server.TreeViewAdapter.expandNodeToLevel().
TreeNode de.yaacc.upnp.server.TreeNodeManager.get | ( | int | index | ) |
Get TreeNode from the current nodes by index.
index | of node to get it |
List< TreeNode > de.yaacc.upnp.server.TreeNodeManager.getTreeNodes | ( | ) |
Get the Current visible Tree nodes.
Referenced by de.yaacc.upnp.server.TreeViewAdapter.getTreeNodes().
boolean de.yaacc.upnp.server.TreeNodeManager.removeNode | ( | TreeNode | node | ) |
Delete one node from the visible nodes.
node | to delete it from the current nodes |
void de.yaacc.upnp.server.TreeNodeManager.setTreeNodes | ( | List< TreeNode > | treeNodes | ) |
Set the current visible tree nodes.
treeNodes | New tree nodes |
Referenced by de.yaacc.upnp.server.TreeViewAdapter.setTreeNodes().
int de.yaacc.upnp.server.TreeNodeManager.size | ( | ) |
Get the current number of visible nodes.
Referenced by de.yaacc.upnp.server.TreeViewAdapter.clearTreeNodes().
void de.yaacc.upnp.server.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.TreeNodeManager.collapseAll(), and de.yaacc.upnp.server.TreeViewAdapter.updateTreeNodes().