|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.io.FileTreeNode
public class FileTreeNode
FileTreeNode implements a TreeNode that can be used to visualize a file structure. Both, directories and files are visible by default. Optionally, a FileFilter can be used to restrict the files in the tree.
DirectoryTreeNode,
JTree,
DefaultTreeModel,
Serialized Form| Constructor Summary | |
|---|---|
FileTreeNode(File file)
initializes the FileTreeNode with the given file |
|
FileTreeNode(File file,
FileFilter filter)
initializes the FileTreeNode with the given file and filter |
|
| Method Summary | |
|---|---|
Enumeration<?> |
children()
|
boolean |
equals(Object obj)
|
boolean |
getAllowsChildren()
|
TreeNode |
getChildAt(int childIndex)
|
int |
getChildCount()
|
File |
getFile()
|
FileFilter |
getFilter()
|
int |
getIndex(TreeNode node)
|
TreeNode |
getParent()
|
int |
hashCode()
|
boolean |
isLeaf()
|
void |
refreshContent()
refreshes the embedded content |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileTreeNode(File file)
public FileTreeNode(File file,
FileFilter filter)
| Method Detail |
|---|
public void refreshContent()
Refreshable
refreshContent in interface Refreshablepublic File getFile()
public FileFilter getFilter()
public Enumeration<?> children()
children in interface TreeNodepublic int getChildCount()
getChildCount in interface TreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodepublic TreeNode getChildAt(int childIndex)
getChildAt in interface TreeNodepublic int getIndex(TreeNode node)
getIndex in interface TreeNodepublic boolean isLeaf()
isLeaf in interface TreeNodepublic TreeNode getParent()
getParent in interface TreeNodepublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||