Package jmri.jmrit.symbolicprog
Class CombinedLocoSelTreePane.InvisibleTreeModel
- java.lang.Object
-
- javax.swing.tree.DefaultTreeModel
-
- jmri.jmrit.symbolicprog.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
-
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
-
-
-
-
Field Detail
-
filterIsActive
protected boolean filterIsActive
-
-
Constructor Detail
-
InvisibleTreeModel
public InvisibleTreeModel(javax.swing.tree.TreeNode root)
-
InvisibleTreeModel
public InvisibleTreeModel(javax.swing.tree.TreeNode root, boolean asksAllowsChildren)
-
InvisibleTreeModel
public InvisibleTreeModel(javax.swing.tree.TreeNode root, boolean asksAllowsChildren, boolean filterIsActive)
-
-
Method Detail
-
activateFilter
public void activateFilter(boolean newValue)
-
isActivatedFilter
public boolean isActivatedFilter()
-
getChild
public java.lang.Object getChild(java.lang.Object parent, int index)
- Specified by:
getChild
in interfacejavax.swing.tree.TreeModel
- Overrides:
getChild
in classjavax.swing.tree.DefaultTreeModel
-
getChildCount
public int getChildCount(java.lang.Object parent)
- Specified by:
getChildCount
in interfacejavax.swing.tree.TreeModel
- Overrides:
getChildCount
in classjavax.swing.tree.DefaultTreeModel
-
-