|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.tree.DefaultMutableTreeNode | +--vc.gui.client.ui.TreeNode
TreeNode is the model(pattern) class for holding and representing the directory in the project tree. It extends DefaultMutableTreeNode interface to be used as a tree node for Swing's JTee
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
TreeNode()
Constructs an empty tree node with no data. |
|
TreeNode(Directory userObject)
Constructs a tree node from the directory object and it takes the help of super class for its processing. |
Method Summary | |
TreeNode |
addChildNode(Directory childNode)
Adds a child node to this node |
void |
addSubDirectories(ProjectDBManager projectDBManager)
This is to referesh the children of this node form top to bottom. |
TreeNode |
getChildNode(java.lang.String directoryID)
Get a particular child node of this node with a matching directory ID |
java.lang.String |
toString()
JTree uses this method for showing the node text in the tree. |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TreeNode(Directory userObject)
userObject
- the actual directory object which is represented
by this tree node objectpublic TreeNode()
Method Detail |
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
public void addSubDirectories(ProjectDBManager projectDBManager) throws java.lang.Throwable
projectDBManager
- projectDBManager is the source of getting the
directory structure and datapublic TreeNode addChildNode(Directory childNode)
childNode
- the node which is to be added as a child node.public TreeNode getChildNode(java.lang.String directoryID)
directoryID
- ID of the directory that is to be fetched
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |