org.tbee.swing.file
Class FileTreePanel.FileTreeNode
java.lang.Object
org.tbee.swing.file.FileTreePanel.FileTreeNode
- All Implemented Interfaces:
- TreeNode
- Enclosing class:
- FileTreePanel
public class FileTreePanel.FileTreeNode
- extends Object
- implements TreeNode
A node in the file tree.
FileTreePanel.FileTreeNode
public FileTreePanel.FileTreeNode(File file,
boolean isFileSystemRoot,
TreeNode parent)
- Creates a new file tree node.
- Parameters:
file - Node fileisFileSystemRoot - Indicates whether the file is a file system root.parent - Parent node.
FileTreePanel.FileTreeNode
public FileTreePanel.FileTreeNode(File[] children)
- Creates a new file tree node.
- Parameters:
children - Children files.
getFile
public File getFile()
children
public Enumeration<?> children()
- Specified by:
children in interface TreeNode
getAllowsChildren
public boolean getAllowsChildren()
- Specified by:
getAllowsChildren in interface TreeNode
getChildAt
public TreeNode getChildAt(int childIndex)
- Specified by:
getChildAt in interface TreeNode
getChildCount
public int getChildCount()
- Specified by:
getChildCount in interface TreeNode
getIndex
public int getIndex(TreeNode node)
- Specified by:
getIndex in interface TreeNode
getParent
public TreeNode getParent()
- Specified by:
getParent in interface TreeNode
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf in interface TreeNode
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011 KnowledgePlaza. All Rights Reserved.