net.sourceforge.neurosdbm
Class NeurosTreeModel

java.lang.Object
  extended byjavax.swing.tree.DefaultTreeModel
      extended bynet.sourceforge.neurosdbm.NeurosTreeModelBase
          extended bynet.sourceforge.neurosdbm.NeurosTreeModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.tree.TreeModel

class NeurosTreeModel
extends NeurosTreeModelBase

This defines the data for the tree (the left side of the screen). This class will do the appropriate database queries in order to fill out the tree.

Version:
$Id:

Field Summary
private static int[] audioNodeDataTypes
           
private static java.lang.String[] audioNodeNames
           
private static int[] audioNodeQueryDatabase
           
private static int[] audioNodeQueryType
           
private  Database database
           
private static int[] hisiNodeDataTypes
           
private static java.lang.String[] hisiNodeNames
           
private static int[] pcaudioNodeDataTypes
           
private static java.lang.String[] pcaudioNodeNames
           
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
protected NeurosTreeModel(javax.swing.tree.MutableTreeNode root)
           
(package private) NeurosTreeModel(javax.swing.tree.MutableTreeNode root, Database database)
          The constructor for this object.
 
Method Summary
(package private)  void updateData()
          This function updates the tree data.
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, 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
 

Field Detail

database

private Database database

audioNodeNames

private static java.lang.String[] audioNodeNames

audioNodeDataTypes

private static int[] audioNodeDataTypes

audioNodeQueryDatabase

private static int[] audioNodeQueryDatabase

audioNodeQueryType

private static int[] audioNodeQueryType

hisiNodeNames

private static java.lang.String[] hisiNodeNames

hisiNodeDataTypes

private static int[] hisiNodeDataTypes

pcaudioNodeNames

private static java.lang.String[] pcaudioNodeNames

pcaudioNodeDataTypes

private static int[] pcaudioNodeDataTypes
Constructor Detail

NeurosTreeModel

NeurosTreeModel(javax.swing.tree.MutableTreeNode root,
                Database database)
The constructor for this object. It needs a (blank) root and the database.

Parameters:
root - The (blank) root.
database - The database.

NeurosTreeModel

protected NeurosTreeModel(javax.swing.tree.MutableTreeNode root)
Method Detail

updateData

void updateData()
This function updates the tree data. It will query the database for all the apppropriate data and create the tree nodes needed.

Specified by:
updateData in class NeurosTreeModelBase


Copyright © 2004 NeurosDBM Dev Team All Rights Reserved.