org.tbee.swing.vfs
Class VfsTreePanel.FileTreeNode

java.lang.Object
  extended by org.tbee.swing.vfs.VfsTreePanel.FileTreeNode
All Implemented Interfaces:
TreeNode
Enclosing class:
VfsTreePanel

public class VfsTreePanel.FileTreeNode
extends Object
implements TreeNode

A node in the file tree.


Constructor Summary
VfsTreePanel.FileTreeNode(org.apache.commons.vfs.FileObject[] children)
          Creates a new file tree node.
VfsTreePanel.FileTreeNode(org.apache.commons.vfs.FileObject file, boolean isFileSystemRoot, TreeNode parent)
          Creates a new file tree node.
 
Method Summary
 Enumeration<?> children()
           
 boolean getAllowsChildren()
           
 TreeNode getChildAt(int childIndex)
           
 int getChildCount()
           
 org.apache.commons.vfs.FileObject 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

VfsTreePanel.FileTreeNode

public VfsTreePanel.FileTreeNode(org.apache.commons.vfs.FileObject 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.

VfsTreePanel.FileTreeNode

public VfsTreePanel.FileTreeNode(org.apache.commons.vfs.FileObject[] children)
Creates a new file tree node.

Parameters:
children - Children files.
Method Detail

getFile

public org.apache.commons.vfs.FileObject 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.