projectviewer.vpt
Class VPTCompactModel.CompactDirectoryNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byprojectviewer.vpt.VPTNode
          extended byprojectviewer.vpt.VPTDirectory
              extended byprojectviewer.vpt.VPTCompactModel.CompactDirectoryNode
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
Enclosing class:
VPTCompactModel

public static class VPTCompactModel.CompactDirectoryNode
extends VPTDirectory

See Also:
Serialized Form

Field Summary
 
Fields inherited from class projectviewer.vpt.VPTDirectory
file
 
Fields inherited from class projectviewer.vpt.VPTNode
treeNoSelectionBackground, treeNoSelectionForeground, treeSelectionBackground, treeSelectionForeground
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
VPTCompactModel.CompactDirectoryNode(VPTNode dir, java.lang.String name)
           
 
Method Summary
 void add(VPTNode node)
           
 int getClipType()
          This method controls how the CellRenderer implementation will clip the name of the node when it doesn't fit in the tree.
 VPTNode getDir()
           
 java.util.List getFiles()
           
 java.lang.String getName()
          Returns the name of this node.
 void remove(VPTNode node)
           
 
Methods inherited from class projectviewer.vpt.VPTDirectory
canWrite, compareToNode, delete, getFile, getIcon, getNodePath, setFile, toString
 
Methods inherited from class projectviewer.vpt.VPTNode
canOpen, close, compareName, compareTo, findIndexForChild, findProjectFor, getBackgroundColor, getChildWithName, getForegroundColor, 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
 

Constructor Detail

VPTCompactModel.CompactDirectoryNode

public VPTCompactModel.CompactDirectoryNode(VPTNode dir,
                                            java.lang.String name)
Method Detail

getDir

public VPTNode getDir()

getName

public java.lang.String getName()
Description copied from class: VPTNode
Returns the name of this node. The name is the text that will appear in the project tree.

Overrides:
getName in class VPTNode

getFiles

public java.util.List getFiles()

remove

public void remove(VPTNode node)

add

public void add(VPTNode node)

getClipType

public int getClipType()
Description copied from class: VPTNode
This method controls how the CellRenderer implementation will clip the name of the node when it doesn't fit in the tree.

Overrides:
getClipType in class VPTNode
Returns:
CLIP_NOCLIP in the default implementation, override to change it.
See Also:
VPTCellRenderer