Class CombinedLocoSelTreePane.InvisibleTreeModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.tree.TreeModel
    Enclosing class:
    CombinedLocoSelTreePane

    static class CombinedLocoSelTreePane.InvisibleTreeModel
    extends javax.swing.tree.DefaultTreeModel
    The following has been taken from an example given in.. http://www.java2s.com/Code/Java/Swing-Components/DecoderTreeNodeTreeExample.htm with extracts from http://www.codeguru.com/java/articles/143.shtml
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean filterIsActive  
      • Fields inherited from class javax.swing.tree.DefaultTreeModel

        asksAllowsChildren, listenerList, root
    • Constructor Summary

      Constructors 
      Constructor Description
      InvisibleTreeModel​(javax.swing.tree.TreeNode root)  
      InvisibleTreeModel​(javax.swing.tree.TreeNode root, boolean asksAllowsChildren)  
      InvisibleTreeModel​(javax.swing.tree.TreeNode root, boolean asksAllowsChildren, boolean filterIsActive)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activateFilter​(boolean newValue)  
      java.lang.Object getChild​(java.lang.Object parent, int index)  
      int getChildCount​(java.lang.Object parent)  
      boolean isActivatedFilter()  
      • Methods inherited from class javax.swing.tree.DefaultTreeModel

        addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
      • Methods inherited from class java.lang.Object

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

      • InvisibleTreeModel

        public InvisibleTreeModel​(javax.swing.tree.TreeNode root,
                                  boolean asksAllowsChildren)
      • InvisibleTreeModel

        public InvisibleTreeModel​(javax.swing.tree.TreeNode root,
                                  boolean asksAllowsChildren,
                                  boolean filterIsActive)
    • Method Detail

      • getChild

        public java.lang.Object getChild​(java.lang.Object parent,
                                         int index)
        Specified by:
        getChild in interface javax.swing.tree.TreeModel
        Overrides:
        getChild in class javax.swing.tree.DefaultTreeModel
      • getChildCount

        public int getChildCount​(java.lang.Object parent)
        Specified by:
        getChildCount in interface javax.swing.tree.TreeModel
        Overrides:
        getChildCount in class javax.swing.tree.DefaultTreeModel