org.embl.ebi.escience.scufl.view
Class TreeModelView

java.lang.Object
  extended by javax.swing.tree.DefaultTreeModel
      extended by org.embl.ebi.escience.scufl.view.TreeModelView
All Implemented Interfaces:
java.io.Serializable, javax.swing.tree.TreeModel, ScuflModelEventListener
Direct Known Subclasses:
TreeTableModelView

public class TreeModelView
extends javax.swing.tree.DefaultTreeModel
implements ScuflModelEventListener

A TreeModel implementation used to represent a ScuflModel as a tree.

Author:
Tom Oinn
See Also:
Serialized Form

Constructor Summary
TreeModelView()
          Create a new TreeModel implementation
 
Method Summary
 void attachToModel(ScuflModel theModel)
          Bind to a ScuflModel
 void detachFromModel()
          Unbind from the ScuflModel
 ScuflModel getModel()
          Return the workflow this view is bound to
 void receiveModelEvent(ScuflModelEvent event)
          Handle a model change event
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getRoot, 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

TreeModelView

public TreeModelView()
Create a new TreeModel implementation

Method Detail

getModel

public ScuflModel getModel()
Return the workflow this view is bound to


attachToModel

public void attachToModel(ScuflModel theModel)
Bind to a ScuflModel


detachFromModel

public void detachFromModel()
Unbind from the ScuflModel


receiveModelEvent

public void receiveModelEvent(ScuflModelEvent event)
Handle a model change event

Specified by:
receiveModelEvent in interface ScuflModelEventListener