edu.umd.cfar.lamp.viper.gui.config
Class ViperTreeModel

java.lang.Object
  extended byedu.umd.cfar.lamp.viper.gui.config.ViperTreeModel
All Implemented Interfaces:
javax.swing.tree.TreeModel

public class ViperTreeModel
extends java.lang.Object
implements javax.swing.tree.TreeModel

Since:
Jun 9, 2003
Author:
davidm@cfar.umd.edu

Constructor Summary
ViperTreeModel(ConfigEditor ed)
           
 
Method Summary
 void addTreeModelListener(javax.swing.event.TreeModelListener tml)
           
 void addTreeToSelect(javax.swing.JTree tree)
           
 void enqueueNodeSelection(Node toSelect)
           
 java.lang.Object getChild(java.lang.Object parent, int index)
           
 int getChildCount(java.lang.Object n)
           
 int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
           
 ViperViewMediator getMediator()
           
 java.lang.Object getRoot()
           
 boolean isLeaf(java.lang.Object n)
           
 void removeTreeModelListener(javax.swing.event.TreeModelListener tml)
           
 void removeTreeToSelect(javax.swing.JTree tree)
           
 void setMediator(ViperViewMediator mediator)
           
 void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViperTreeModel

public ViperTreeModel(ConfigEditor ed)
Method Detail

enqueueNodeSelection

public void enqueueNodeSelection(Node toSelect)

getRoot

public java.lang.Object getRoot()
Specified by:
getRoot in interface javax.swing.tree.TreeModel

getChildCount

public int getChildCount(java.lang.Object n)
Specified by:
getChildCount in interface javax.swing.tree.TreeModel

isLeaf

public boolean isLeaf(java.lang.Object n)
Specified by:
isLeaf in interface javax.swing.tree.TreeModel

addTreeModelListener

public void addTreeModelListener(javax.swing.event.TreeModelListener tml)
Specified by:
addTreeModelListener in interface javax.swing.tree.TreeModel

removeTreeModelListener

public void removeTreeModelListener(javax.swing.event.TreeModelListener tml)
Specified by:
removeTreeModelListener in interface javax.swing.tree.TreeModel

getChild

public java.lang.Object getChild(java.lang.Object parent,
                                 int index)
Specified by:
getChild in interface javax.swing.tree.TreeModel

getIndexOfChild

public int getIndexOfChild(java.lang.Object parent,
                           java.lang.Object child)
Specified by:
getIndexOfChild in interface javax.swing.tree.TreeModel

valueForPathChanged

public void valueForPathChanged(javax.swing.tree.TreePath path,
                                java.lang.Object newValue)
Specified by:
valueForPathChanged in interface javax.swing.tree.TreeModel

getMediator

public ViperViewMediator getMediator()

setMediator

public void setMediator(ViperViewMediator mediator)
Parameters:
mediator -

addTreeToSelect

public void addTreeToSelect(javax.swing.JTree tree)

removeTreeToSelect

public void removeTreeToSelect(javax.swing.JTree tree)