YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
Public Member Functions | List of all members
de.yaacc.upnp.server.TreeNodeManager Class Reference

Manager class for TreeNodes to easily apply operations on them and to make it easy for testing and extending. More...

Collaboration diagram for de.yaacc.upnp.server.TreeNodeManager:
Collaboration graph

Public Member Functions

 TreeNodeManager ()
 Simple constructor.
 
void setTreeNodes (List< TreeNode > treeNodes)
 Set the current visible tree nodes.
 
List< TreeNodegetTreeNodes ()
 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.
 

Detailed Description

Manager class for TreeNodes to easily apply operations on them and to make it easy for testing and extending.

Member Function Documentation

◆ addNode()

boolean de.yaacc.upnp.server.TreeNodeManager.addNode ( TreeNode  node)

Add new node to the current tree nodes.

Parameters
nodeto add it to the current tree nodes
Returns
true of this node is added

◆ collapseNode()

int de.yaacc.upnp.server.TreeNodeManager.collapseNode ( TreeNode  node)

Collapsing node and all of his children.

Parameters
nodeThe node to collapse it
Returns
the index of this node if it exists in the list

Referenced by de.yaacc.upnp.server.TreeViewAdapter.collapseNode().

Here is the caller graph for this function:

◆ collapseNodeBranch()

int de.yaacc.upnp.server.TreeNodeManager.collapseNodeBranch ( TreeNode  node)
Parameters
nodeThe node to collapse the branch of it
Returns
the index of this node if it exists in the list

Referenced by de.yaacc.upnp.server.TreeNodeManager.collapseAll(), de.yaacc.upnp.server.TreeNodeManager.collapseNodeBranch(), and de.yaacc.upnp.server.TreeViewAdapter.collapseNodeBranch().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ expandNode()

int de.yaacc.upnp.server.TreeNodeManager.expandNode ( TreeNode  node)

Expanding node and all of his children.

Parameters
nodeThe node to expand it
Returns
the index of this node if it exists in the list

Referenced by de.yaacc.upnp.server.TreeViewAdapter.expandNode(), and de.yaacc.upnp.server.TreeNodeManager.expandNodeToLevel().

Here is the caller graph for this function:

◆ expandNodeBranch()

int de.yaacc.upnp.server.TreeNodeManager.expandNodeBranch ( TreeNode  node)

Expanding node full branches.

Parameters
nodeThe node to expand the branch of it
Returns
the index of this node if it exists in the list

Referenced by de.yaacc.upnp.server.TreeNodeManager.expandAll(), de.yaacc.upnp.server.TreeNodeManager.expandNodeBranch(), and de.yaacc.upnp.server.TreeViewAdapter.expandNodeBranch().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ expandNodesAtLevel()

void de.yaacc.upnp.server.TreeNodeManager.expandNodesAtLevel ( int  level)

Expanding all tree nodes branches to until specific level.

Parameters
levelto expand all nodes branches to it

Referenced by de.yaacc.upnp.server.TreeViewAdapter.expandNodesAtLevel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ expandNodeToLevel()

void de.yaacc.upnp.server.TreeNodeManager.expandNodeToLevel ( TreeNode  node,
int  level 
)

Expanding one node branch to until specific level.

Parameters
nodeto expand branch of it until level
levelto 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get()

TreeNode de.yaacc.upnp.server.TreeNodeManager.get ( int  index)

Get TreeNode from the current nodes by index.

Parameters
indexof node to get it
Returns
TreeNode from by index from current tree nodes if exists

◆ getTreeNodes()

List< TreeNode > de.yaacc.upnp.server.TreeNodeManager.getTreeNodes ( )

Get the Current visible Tree nodes.

Returns
The visible Tree nodes main

Referenced by de.yaacc.upnp.server.TreeViewAdapter.getTreeNodes().

Here is the caller graph for this function:

◆ removeNode()

boolean de.yaacc.upnp.server.TreeNodeManager.removeNode ( TreeNode  node)

Delete one node from the visible nodes.

Parameters
nodeto delete it from the current nodes
Returns
true of this node is deleted

◆ setTreeNodes()

void de.yaacc.upnp.server.TreeNodeManager.setTreeNodes ( List< TreeNode treeNodes)

Set the current visible tree nodes.

Parameters
treeNodesNew tree nodes

Referenced by de.yaacc.upnp.server.TreeViewAdapter.setTreeNodes().

Here is the caller graph for this function:

◆ size()

int de.yaacc.upnp.server.TreeNodeManager.size ( )

Get the current number of visible nodes.

Returns
the size of visible nodes

Referenced by de.yaacc.upnp.server.TreeViewAdapter.clearTreeNodes().

Here is the caller graph for this function:

◆ updateNodes()

void de.yaacc.upnp.server.TreeNodeManager.updateNodes ( List< TreeNode newNodes)

Clear the current nodes and insert new nodes.

Parameters
newNodesto update the current nodes with them

Referenced by de.yaacc.upnp.server.TreeNodeManager.collapseAll(), and de.yaacc.upnp.server.TreeViewAdapter.updateTreeNodes().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: