Class BaseNode

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.tree.TreeNode
    Direct Known Subclasses:
    FolderNode

    public abstract class BaseNode
    extends java.lang.Object
    implements javax.swing.tree.TreeNode, java.io.Serializable
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected BaseNode parent  
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseNode​(BaseNode parent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Enumeration<? extends javax.swing.tree.TreeNode> children()  
      boolean getAllowsChildren()  
      javax.swing.tree.TreeNode getChildAt​(int childIndex)  
      int getChildCount()  
      int getIndex​(javax.swing.tree.TreeNode node)  
      javax.swing.tree.TreeNode getParent()  
      boolean isLeaf()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseNode

        public BaseNode​(BaseNode parent)
    • Method Detail

      • getParent

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

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

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

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

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

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

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