Version: 1.1.1

org.inb.biomoby.central.gui.model
Class DataTypesTreeModel

java.lang.Object
  extended by javax.swing.tree.DefaultTreeModel
      extended by org.inb.biomoby.central.gui.model.DataTypesTreeModel
All Implemented Interfaces:
Serializable, TreeModel, ModelListener<ObjectType>

public class DataTypesTreeModel
extends DefaultTreeModel
implements ModelListener<ObjectType>

TreeModel that contains BioMoby datatype elements. The model implements an ObjectType ModelListener to automatically synchronize with DatatypesModel singleton model

Author:
Dmitry Repchevsky
See Also:
Serialized Form

Constructor Summary
DataTypesTreeModel()
           
 
Method Summary
 DefaultMutableTreeNode findNode(ObjectType element)
           
 DefaultMutableTreeNode getRoot()
           
 void modelCleared()
           
 void modelObjectChanged(ObjectType object1, ObjectType object2)
           
 void modelObjectInserted(ObjectType object)
           
 void modelObjectRemoved(ObjectType object)
           
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTypesTreeModel

public DataTypesTreeModel()
Method Detail

getRoot

public DefaultMutableTreeNode getRoot()
Specified by:
getRoot in interface TreeModel
Overrides:
getRoot in class DefaultTreeModel

modelCleared

public void modelCleared()
Specified by:
modelCleared in interface ModelListener<ObjectType>

modelObjectInserted

public void modelObjectInserted(ObjectType object)
Specified by:
modelObjectInserted in interface ModelListener<ObjectType>

modelObjectRemoved

public void modelObjectRemoved(ObjectType object)
Specified by:
modelObjectRemoved in interface ModelListener<ObjectType>

modelObjectChanged

public void modelObjectChanged(ObjectType object1,
                               ObjectType object2)
Specified by:
modelObjectChanged in interface ModelListener<ObjectType>

findNode

public DefaultMutableTreeNode findNode(ObjectType element)

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010