Package jmri.jmrit.logixng.tools.swing
Class TreePane.FemaleSocketTreeModel
- java.lang.Object
-
- jmri.jmrit.logixng.tools.swing.TreePane.FemaleSocketTreeModel
-
- All Implemented Interfaces:
javax.swing.tree.TreeModel
- Enclosing class:
- TreePane
public static class TreePane.FemaleSocketTreeModel extends java.lang.Object implements javax.swing.tree.TreeModel
The methods in this class allow the JTree component to traverse the female sockets of the ConditionalNG tree.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<javax.swing.event.TreeModelListener>
listeners
-
Constructor Summary
Constructors Constructor Description FemaleSocketTreeModel(FemaleSocket root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTreeModelListener(javax.swing.event.TreeModelListener l)
java.lang.Object
getChild(java.lang.Object parent, int index)
int
getChildCount(java.lang.Object parent)
int
getIndexOfChild(java.lang.Object parent, java.lang.Object child)
java.lang.Object
getRoot()
boolean
isLeaf(java.lang.Object node)
void
removeTreeModelListener(javax.swing.event.TreeModelListener l)
void
valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newvalue)
-
-
-
Field Detail
-
listeners
protected final java.util.List<javax.swing.event.TreeModelListener> listeners
-
-
Constructor Detail
-
FemaleSocketTreeModel
public FemaleSocketTreeModel(FemaleSocket root)
-
-
Method Detail
-
getRoot
public java.lang.Object getRoot()
- Specified by:
getRoot
in interfacejavax.swing.tree.TreeModel
-
isLeaf
public boolean isLeaf(java.lang.Object node)
- Specified by:
isLeaf
in interfacejavax.swing.tree.TreeModel
-
getChildCount
public int getChildCount(java.lang.Object parent)
- Specified by:
getChildCount
in interfacejavax.swing.tree.TreeModel
-
getChild
public java.lang.Object getChild(java.lang.Object parent, int index)
- Specified by:
getChild
in interfacejavax.swing.tree.TreeModel
-
getIndexOfChild
public int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
- Specified by:
getIndexOfChild
in interfacejavax.swing.tree.TreeModel
-
valueForPathChanged
public void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newvalue)
- Specified by:
valueForPathChanged
in interfacejavax.swing.tree.TreeModel
-
addTreeModelListener
public void addTreeModelListener(javax.swing.event.TreeModelListener l)
- Specified by:
addTreeModelListener
in interfacejavax.swing.tree.TreeModel
-
removeTreeModelListener
public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
- Specified by:
removeTreeModelListener
in interfacejavax.swing.tree.TreeModel
-
-