Class FolderTree.Node

  • All Implemented Interfaces:
    javax.swing.tree.TreeNode
    Enclosing class:
    FolderTree

    protected class FolderTree.Node
    extends java.lang.Object
    implements javax.swing.tree.TreeNode
    Class of nodes in the folder tree.
    • Field Detail

      • file

        protected java.io.File file
      • checkedForChildren

        public boolean checkedForChildren
      • hasChildren

        public boolean hasChildren
      • userObject

        public java.lang.Object userObject
        Subclasses of FolderTree can use this as they see fit.
    • Constructor Detail

      • Node

        public Node​(java.io.File[] roots)
      • Node

        public Node​(java.io.File f)
    • Method Detail

      • getChildAt

        public FolderTree.Node getChildAt​(int childIndex)
        Specified by:
        getChildAt in interface javax.swing.tree.TreeNode
      • getChildCount

        public int getChildCount()
        Specified by:
        getChildCount in interface javax.swing.tree.TreeNode
      • getParent

        public javax.swing.tree.TreeNode getParent()
        Specified by:
        getParent in interface javax.swing.tree.TreeNode
      • getIndex

        public int getIndex​(javax.swing.tree.TreeNode node)
        Specified by:
        getIndex in interface javax.swing.tree.TreeNode
      • getAllowsChildren

        public boolean getAllowsChildren()
        Specified by:
        getAllowsChildren in interface javax.swing.tree.TreeNode
      • isLeaf

        public boolean isLeaf()
        Specified by:
        isLeaf in interface javax.swing.tree.TreeNode
      • children

        public java.util.Enumeration<FolderTree.Node> children()
        Specified by:
        children in interface javax.swing.tree.TreeNode
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getFile

        public final java.io.File getFile()