Class FilterableMutableTreeNode

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

    public class FilterableMutableTreeNode
    extends javax.swing.tree.DefaultMutableTreeNode
    See Also:
    Serialized Form
    • Field Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(javax.swing.tree.MutableTreeNode o)  
      void add​(javax.swing.tree.MutableTreeNode o, boolean filter)  
      java.util.Enumeration<javax.swing.tree.TreeNode> children()  
      void filter()  
      void filter​(java.lang.String filter)  
      javax.swing.tree.TreeNode getChildAt​(int childIndex)  
      int getChildCount()  
      int getIndex​(javax.swing.tree.TreeNode aChild)  
      void remove​(int childIndex)  
      void removeAllChildren()  
      • Methods inherited from class javax.swing.tree.DefaultMutableTreeNode

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

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

      • FilterableMutableTreeNode

        public FilterableMutableTreeNode​(java.lang.Object nodeValue)
    • Method Detail

      • filter

        public void filter​(java.lang.String filter)
      • getChildAt

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

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

        public int getIndex​(javax.swing.tree.TreeNode aChild)
        Specified by:
        getIndex in interface javax.swing.tree.TreeNode
        Overrides:
        getIndex in class javax.swing.tree.DefaultMutableTreeNode
      • children

        public java.util.Enumeration<javax.swing.tree.TreeNode> children()
        Specified by:
        children in interface javax.swing.tree.TreeNode
        Overrides:
        children in class javax.swing.tree.DefaultMutableTreeNode
      • add

        public void add​(javax.swing.tree.MutableTreeNode o)
        Overrides:
        add in class javax.swing.tree.DefaultMutableTreeNode
      • add

        public void add​(javax.swing.tree.MutableTreeNode o,
                        boolean filter)
      • filter

        public void filter()
      • remove

        public void remove​(int childIndex)
        Specified by:
        remove in interface javax.swing.tree.MutableTreeNode
        Overrides:
        remove in class javax.swing.tree.DefaultMutableTreeNode
      • removeAllChildren

        public void removeAllChildren()
        Overrides:
        removeAllChildren in class javax.swing.tree.DefaultMutableTreeNode