projectviewer.vpt
Class VPTRoot

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byprojectviewer.vpt.VPTNode
          extended byprojectviewer.vpt.VPTGroup
              extended byprojectviewer.vpt.VPTRoot
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode

public class VPTRoot
extends VPTGroup

The root of the tree. Aside from being the root of the project tree, it provides methods for manipulating the projects and persisting data to the disk.

Version:
$Id: VPTRoot.java 6334 2005-02-10 06:33:28Z vanza $
Author:
Marcelo Vanzin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class projectviewer.vpt.VPTNode
name, treeNoSelectionBackground, treeNoSelectionForeground, treeSelectionBackground, treeSelectionForeground
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Method Summary
 int compareToNode(VPTNode node)
          The root is always the first node.
static VPTRoot getInstance()
          Returns an instance of the VPTRoot.
 java.lang.String getNodePath()
          Returns File.separator.
 
Methods inherited from class projectviewer.vpt.VPTGroup
getIcon, toString
 
Methods inherited from class projectviewer.vpt.VPTNode
canOpen, canWrite, close, compareName, compareTo, delete, findIndexForChild, findProjectFor, getBackgroundColor, getChildWithName, getClipType, getForegroundColor, getName, isDirectory, isFile, isGroup, isOpened, isProject, isRoot, open, persistChildren, setName, setParent, sortChildren, sortChildren
 
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, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static VPTRoot getInstance()
Returns an instance of the VPTRoot.


getNodePath

public java.lang.String getNodePath()
Returns File.separator.

Overrides:
getNodePath in class VPTGroup

compareToNode

public int compareToNode(VPTNode node)
The root is always the first node. Period.

Overrides:
compareToNode in class VPTGroup