cz.hdf.cdnavigator.gui.util
Class DirectoryMutableTreeNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by cz.hdf.cdnavigator.gui.util.DirectoryMutableTreeNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class DirectoryMutableTreeNode
extends javax.swing.tree.DefaultMutableTreeNode

Tree node for files and directories in JTree.

Author:
hunter
See Also:
Serialized Form

Field Summary
private  boolean isDirectory
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
DirectoryMutableTreeNode()
           
DirectoryMutableTreeNode(java.io.File _userObject, boolean _isDirectory)
           
 
Method Summary
 boolean isLeaf()
           
 java.lang.String toString()
           
 
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, 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
 

Field Detail

isDirectory

private boolean isDirectory
Constructor Detail

DirectoryMutableTreeNode

public DirectoryMutableTreeNode()

DirectoryMutableTreeNode

public DirectoryMutableTreeNode(java.io.File _userObject,
                                boolean _isDirectory)
Method Detail

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface javax.swing.tree.TreeNode
Overrides:
isLeaf in class javax.swing.tree.DefaultMutableTreeNode

toString

public java.lang.String toString()
Overrides:
toString in class javax.swing.tree.DefaultMutableTreeNode


CDnavigator JavaDoc, HDF company www.hdf.cz