Class ConceptsTreeModel

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

public class ConceptsTreeModel
extends javax.swing.tree.DefaultTreeModel

A JTable that lists

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


public ConceptsTreeModel(boolean updateOnCreate)


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


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


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


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.


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

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.