Class EdalMutableTreeModel

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

    public class EdalMutableTreeModel
    extends javax.swing.tree.DefaultMutableTreeNode
    Defines the requirements for an object that can be used as a tree node in a JTree. Implementations of DefaultMutableTreeNode that override isLeaf Because when we build the directory tree, we use lazy load, we want all the files looks like a directroy, so the isLeaf() method return false Refer to TreeModel for more information.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.tree.DefaultMutableTreeNode

        allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
    • Constructor Summary

      Constructors 
      Constructor Description
      EdalMutableTreeModel​(java.lang.Object obj)  
    • Method Summary

      Modifier and Type Method Description
      boolean isLeaf()  
      • Methods inherited from class javax.swing.tree.DefaultMutableTreeNode

        add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
      • Methods inherited from class java.lang.Object

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

      • EdalMutableTreeModel

        public EdalMutableTreeModel​(java.lang.Object obj)
    • Method Detail

      • isLeaf

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