com.simonstl.moe.adapter
Class MOETreeModelA

java.lang.Object
  |
  +--com.simonstl.moe.adapter.MOETreeModelA
All Implemented Interfaces:
javax.swing.tree.TreeModel

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

The MOETreeModelA adapter class provides a Swing-based javax.swing.Tree.TreeModel view of MOE objects.

version 0.01 is the initial release.

Version:
0.01 20 September 2001
Author:
Simon St.Laurent

Field Summary
protected  MOENodeWrapperA root
           
 
Constructor Summary
MOETreeModelA()
           
 
Method Summary
 void addTreeModelListener(javax.swing.event.TreeModelListener listener)
           
 java.lang.Object getChild(java.lang.Object parent, int index)
           
 int getChildCount(java.lang.Object parent)
           
 CoreComponentI getComponent()
           
 int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
           
 java.lang.Object getRoot()
           
 boolean isLeaf(java.lang.Object node)
           
 void removeTreeModelListener(javax.swing.event.TreeModelListener listener)
           
 void setComponent(CoreComponentI _component)
           
 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
 

Field Detail

root

protected MOENodeWrapperA root
Constructor Detail

MOETreeModelA

public MOETreeModelA()
Method Detail

setComponent

public void setComponent(CoreComponentI _component)

getComponent

public CoreComponentI getComponent()

addTreeModelListener

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

removeTreeModelListener

public void removeTreeModelListener(javax.swing.event.TreeModelListener listener)
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

getChildCount

public int getChildCount(java.lang.Object parent)
Specified by:
getChildCount 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

getRoot

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

isLeaf

public boolean isLeaf(java.lang.Object node)
Specified by:
isLeaf 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