Version: 1.1.1

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

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

public class ServicesTreeModel
extends DefaultTreeModel
implements ModelListener<Service>

TreeModel that contains Service elements. The model implements an Service ModelListener to automatically synchronize with ServicesModel singleton model

Author:
Dmitry Repchevsky
See Also:
Serialized Form

Constructor Summary
ServicesTreeModel()
           
 
Method Summary
 DefaultMutableTreeNode getRoot()
           
 void modelCleared()
           
 void modelObjectChanged(Service service1, Service service2)
           
 void modelObjectInserted(Service service)
           
 void modelObjectRemoved(Service service)
           
 
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

ServicesTreeModel

public ServicesTreeModel()
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<Service>

modelObjectInserted

public void modelObjectInserted(Service service)
Specified by:
modelObjectInserted in interface ModelListener<Service>

modelObjectRemoved

public void modelObjectRemoved(Service service)
Specified by:
modelObjectRemoved in interface ModelListener<Service>

modelObjectChanged

public void modelObjectChanged(Service service1,
                               Service service2)
Specified by:
modelObjectChanged in interface ModelListener<Service>

Version: 1.1.1

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