org.databene.commons.file
Class FileTreeModel
java.lang.Object
org.databene.commons.file.FileTreeModel
- All Implemented Interfaces:
- TreeModel<java.io.File>
public class FileTreeModel
- extends java.lang.Object
- implements TreeModel<java.io.File>
databene TreeModel implementation for files.
Created: 08.05.2007 17:55:54
- Author:
- Volker Bergmann
|
Constructor Summary |
FileTreeModel(java.io.File root)
|
FileTreeModel(java.io.File root,
java.util.Comparator<java.io.File> fileComparator)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileTreeModel
public FileTreeModel(java.io.File root)
FileTreeModel
public FileTreeModel(java.io.File root,
java.util.Comparator<java.io.File> fileComparator)
getRoot
public java.io.File getRoot()
- Specified by:
getRoot in interface TreeModel<java.io.File>
getParent
public java.io.File getParent(java.io.File child)
- Specified by:
getParent in interface TreeModel<java.io.File>
getChild
public java.io.File getChild(java.io.File parent,
int index)
- Specified by:
getChild in interface TreeModel<java.io.File>
getChildCount
public int getChildCount(java.io.File parent)
- Specified by:
getChildCount in interface TreeModel<java.io.File>
isLeaf
public boolean isLeaf(java.io.File node)
- Specified by:
isLeaf in interface TreeModel<java.io.File>
getIndexOfChild
public int getIndexOfChild(java.io.File parent,
java.io.File child)
- Specified by:
getIndexOfChild in interface TreeModel<java.io.File>
Copyright © 2010. All Rights Reserved.