Class FolderNode

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.tree.TreeNode

    public abstract class FolderNode
    extends BaseNode
    See Also:
    Serialized Form
    • Field Detail

      • children

        protected java.util.List<BaseNode> children
    • Constructor Detail

      • FolderNode

        public FolderNode​(BaseNode parent)
    • Method Detail

      • loadChildren

        protected void loadChildren()
      • loadChildren

        protected abstract void loadChildren​(java.util.List<BaseNode> children)
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • children

        public java.util.Enumeration<? extends javax.swing.tree.TreeNode> children()
        Specified by:
        children in interface javax.swing.tree.TreeNode
        Overrides:
        children in class BaseNode
      • refresh

        public void refresh()
      • getAllowsChildren

        public boolean getAllowsChildren()
        Specified by:
        getAllowsChildren in interface javax.swing.tree.TreeNode
        Overrides:
        getAllowsChildren in class BaseNode
      • getChildAt

        public javax.swing.tree.TreeNode getChildAt​(int childIndex)
        Specified by:
        getChildAt in interface javax.swing.tree.TreeNode
        Overrides:
        getChildAt in class BaseNode
      • getChildCount

        public int getChildCount()
        Specified by:
        getChildCount in interface javax.swing.tree.TreeNode
        Overrides:
        getChildCount in class BaseNode
      • getIndex

        public int getIndex​(javax.swing.tree.TreeNode node)
        Specified by:
        getIndex in interface javax.swing.tree.TreeNode
        Overrides:
        getIndex in class BaseNode
      • isLeaf

        public boolean isLeaf()
        Specified by:
        isLeaf in interface javax.swing.tree.TreeNode
        Overrides:
        isLeaf in class BaseNode