Class FileTreeNode
java.lang.Object
com.github.weisj.darklaf.components.filetree.FileTreeNode
- All Implemented Interfaces:
Comparable<FileTreeNode>
,TreeNode
- Direct Known Subclasses:
FileTreeNode.RootNode
public class FileTreeNode extends Object implements TreeNode, Comparable<FileTreeNode>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileTreeNode.RootNode
-
Field Summary
Fields Modifier and Type Field Description protected AtomicReference<List<FileTreeNode>>
children
protected FileNode
fileNode
protected FileTreeModel
model
protected FileTreeNode
parent
protected AtomicInteger
taskCount
protected WatchKey
watchKey
-
Constructor Summary
Constructors Constructor Description FileTreeNode(FileTreeNode parent, FileNode fileNode, FileTreeModel model)
-
Method Summary
Modifier and Type Method Description Enumeration<? extends TreeNode>
children()
int
compareTo(FileTreeNode o)
protected <T> void
doInBackground(Consumer<Consumer<T>> task, Consumer<List<T>> processor)
protected <T> void
doInBackground(Consumer<Consumer<T>> task, Consumer<List<T>> processor, Runnable doneTask)
boolean
equals(Object o)
boolean
getAllowsChildren()
TreeNode
getChildAt(int childIndex)
int
getChildCount()
FileNode
getFile()
int
getIndex(TreeNode node)
TreeNode
getParent()
int
hashCode()
boolean
isBusy()
boolean
isLeaf()
boolean
isNodeChild(TreeNode aNode)
void
reload()
protected void
reload(int depth)
protected FileTreeNode
toNode(FileNode fileNode)
String
toString()
protected void
traverseChildren(Consumer<Stream<FileNode>> consumer)
-
Field Details
-
parent
-
model
-
fileNode
-
taskCount
-
children
-
watchKey
-
-
Constructor Details
-
FileTreeNode
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getFile
-
reload
public void reload() -
reload
protected void reload(int depth) -
toString
-
toNode
-
traverseChildren
-
doInBackground
-
doInBackground
-
getChildAt
- Specified by:
getChildAt
in interfaceTreeNode
-
getChildCount
public int getChildCount()- Specified by:
getChildCount
in interfaceTreeNode
-
getParent
-
getIndex
-
getAllowsChildren
public boolean getAllowsChildren()- Specified by:
getAllowsChildren
in interfaceTreeNode
-
isLeaf
public boolean isLeaf() -
children
-
isNodeChild
-
compareTo
- Specified by:
compareTo
in interfaceComparable<FileTreeNode>
-
isBusy
public boolean isBusy()
-