ec.util
Class ParameterDatabaseTreeModel

java.lang.Object
  extended by javax.swing.tree.DefaultTreeModel
      extended by ec.util.ParameterDatabaseTreeModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.tree.TreeModel

public class ParameterDatabaseTreeModel
extends javax.swing.tree.DefaultTreeModel

Author:
spaus
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
ParameterDatabaseTreeModel(javax.swing.tree.TreeNode root)
           
ParameterDatabaseTreeModel(javax.swing.tree.TreeNode root, boolean asksAllowsChildren)
           
 
Method Summary
 java.lang.Object getChild(java.lang.Object parent, int index)
           
 int getChildCount(java.lang.Object parent)
           
 boolean getVisibleLeaves()
           
 void setVisibleLeaves(boolean visibleLeaves)
           
 void sort(java.lang.Object parent, java.util.Comparator comp)
           
 
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

ParameterDatabaseTreeModel

public ParameterDatabaseTreeModel(javax.swing.tree.TreeNode root)
Parameters:
root -

ParameterDatabaseTreeModel

public ParameterDatabaseTreeModel(javax.swing.tree.TreeNode root,
                                  boolean asksAllowsChildren)
Parameters:
root -
asksAllowsChildren -
Method Detail

setVisibleLeaves

public void setVisibleLeaves(boolean visibleLeaves)
Parameters:
visibleLeaves -

getVisibleLeaves

public boolean getVisibleLeaves()

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

sort

public void sort(java.lang.Object parent,
                 java.util.Comparator comp)
Parameters:
parent -
comp -