org.tbee.swing.file
Class FileTreePanel.FileTreeNode

java.lang.Object
  extended by 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.


Constructor Summary
FileTreePanel.FileTreeNode(File[] children)
          Creates a new file tree node.
FileTreePanel.FileTreeNode(File file, boolean isFileSystemRoot, TreeNode parent)
          Creates a new file tree node.
 
Method Summary
 Enumeration<?> children()
           
 boolean getAllowsChildren()
           
 TreeNode getChildAt(int childIndex)
           
 int getChildCount()
           
 File getFile()
           
 int getIndex(TreeNode node)
           
 TreeNode getParent()
           
 boolean isLeaf()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileTreePanel.FileTreeNode

public FileTreePanel.FileTreeNode(File file,
                                  boolean isFileSystemRoot,
                                  TreeNode parent)
Creates a new file tree node.

Parameters:
file - Node file
isFileSystemRoot - 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.
Method Detail

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.