|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.extended.tree.AbstractTreeDataProvider<FileTreeNode> com.alee.extended.tree.FileTreeDataProvider
public class FileTreeDataProvider
Asynchronous data provider for WebFileTree.
Field Summary | |
---|---|
protected java.util.List<java.io.File> |
rootFiles
Tree root files. |
Fields inherited from class com.alee.extended.tree.AbstractTreeDataProvider |
---|
comparator, filter |
Constructor Summary | |
---|---|
FileTreeDataProvider(java.io.File... rootFiles)
Constructs file tree data provider with the specified files as root. |
|
FileTreeDataProvider(Filter<FileTreeNode> filter,
java.io.File... rootFiles)
Constructs file tree data provider with the specified files as root. |
|
FileTreeDataProvider(Filter<FileTreeNode> filter,
java.util.List<java.io.File> rootFiles)
Constructs file tree data provider with the specified files as root. |
|
FileTreeDataProvider(java.util.List<java.io.File> rootFiles)
Constructs file tree data provider with the specified files as root. |
Method Summary | |
---|---|
Filter<FileTreeNode> |
getChildsFilter(FileTreeNode node)
Returns child nodes filter for the specified asynchronous tree node. |
java.util.List<FileTreeNode> |
getFileChilds(FileTreeNode node)
Returns child nodes for specified node. |
FileTreeNode |
getRoot()
Returns asynchronous tree root node. |
protected java.util.List<FileTreeNode> |
getRootChilds()
Returns root child nodes. |
boolean |
isLeaf(FileTreeNode node)
Returns false by default to allow childs load requests. |
void |
loadChilds(FileTreeNode parent,
ChildsListener<FileTreeNode> listener)
Starts loading child nodes for the specified asynchronous tree node. |
Methods inherited from class com.alee.extended.tree.AbstractTreeDataProvider |
---|
getChildsComparator, setChildsComparator, setChildsFilter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<java.io.File> rootFiles
Constructor Detail |
---|
public FileTreeDataProvider(java.io.File... rootFiles)
rootFiles
- tree root filespublic FileTreeDataProvider(java.util.List<java.io.File> rootFiles)
rootFiles
- tree root filespublic FileTreeDataProvider(Filter<FileTreeNode> filter, java.io.File... rootFiles)
filter
- tree nodes filterrootFiles
- tree root filespublic FileTreeDataProvider(Filter<FileTreeNode> filter, java.util.List<java.io.File> rootFiles)
filter
- tree nodes filterrootFiles
- tree root filesMethod Detail |
---|
public FileTreeNode getRoot()
public void loadChilds(FileTreeNode parent, ChildsListener<FileTreeNode> listener)
parent
- parent nodelistener
- childs loading progress listenerprotected java.util.List<FileTreeNode> getRootChilds()
public java.util.List<FileTreeNode> getFileChilds(FileTreeNode node)
node
- parent node
public Filter<FileTreeNode> getChildsFilter(FileTreeNode node)
getChildsFilter
in interface AsyncTreeDataProvider<FileTreeNode>
getChildsFilter
in class AbstractTreeDataProvider<FileTreeNode>
node
- parent node
public boolean isLeaf(FileTreeNode node)
isLeaf
in interface AsyncTreeDataProvider<FileTreeNode>
isLeaf
in class AbstractTreeDataProvider<FileTreeNode>
node
- node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |