com.sun.xml.registry.client.browser
Class ConceptsTreeModel

java.lang.Object
  extended byjavax.swing.tree.DefaultTreeModel
      extended bycom.sun.xml.registry.client.browser.ConceptsTreeModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.tree.TreeModel

public class ConceptsTreeModel
extends javax.swing.tree.DefaultTreeModel

A JTable that lists

Author:
Jim Glennon, Farrukh S. Najmi
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
ConceptsTreeModel(boolean updateOnCreate)
           
ConceptsTreeModel(boolean updateOnCreate, javax.xml.registry.infomodel.RegistryObject rootTaxonomyElem)
           
 
Method Summary
 void expandTree(javax.swing.tree.DefaultMutableTreeNode node, int depth)
          Fetches children of specified node upto specified depth.
 void insertClassificationScheme(javax.xml.registry.infomodel.ClassificationScheme scheme)
           
 void insertConcept(javax.xml.registry.infomodel.Concept concept, javax.swing.tree.DefaultMutableTreeNode parentNode)
           
 void update()
          If no root node specified then load all ClassificationSchemes under a dummy root node.
 
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
 

Constructor Detail

ConceptsTreeModel

public ConceptsTreeModel(boolean updateOnCreate)

ConceptsTreeModel

public ConceptsTreeModel(boolean updateOnCreate,
                         javax.xml.registry.infomodel.RegistryObject rootTaxonomyElem)
Method Detail

insertClassificationScheme

public void insertClassificationScheme(javax.xml.registry.infomodel.ClassificationScheme scheme)

insertConcept

public void insertConcept(javax.xml.registry.infomodel.Concept concept,
                          javax.swing.tree.DefaultMutableTreeNode parentNode)

update

public void update()
If no root node specified then load all ClassificationSchemes under a dummy root node. If a root node is specified then load it as teh root node. If the children of a node have been loaded then call exapnd on it.


expandTree

public void expandTree(javax.swing.tree.DefaultMutableTreeNode node,
                       int depth)
Fetches children of specified node upto specified depth.

Parameters:
depth - a value of 1 means fetch immediate children. A value of N means fetch N levels deep. A value of 0 means do nothing. A value of less than 0 means fetch entire tree.


Copyright © 2001-2004 OASIS. All Rights Reserved.