ec.util
Class ReflectedObject

java.lang.Object
  extended by ec.util.ReflectedObject
All Implemented Interfaces:
javax.swing.tree.TreeModel

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


Constructor Summary
  ReflectedObject(java.lang.Object o)
           
protected ReflectedObject(java.lang.Object o, java.lang.Class t, java.lang.String n, java.lang.Object u)
           
 
Method Summary
 void addTreeModelListener(javax.swing.event.TreeModelListener l)
           
 boolean equals(java.lang.Object obj)
           
 ReflectedObject getChild(int index)
           
 java.lang.Object getChild(java.lang.Object parent, int index)
           
 int getChildCount(java.lang.Object parent)
           
 ReflectedObject[] getChildren()
           
 ReflectedObject getField(int index)
           
 ReflectedObject[] getFields()
           
 int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
           
 int getNumChildren()
           
 int getNumFields()
           
 java.lang.Object getRoot()
           
 boolean isLeaf(java.lang.Object parent)
           
 void removeTreeModelListener(javax.swing.event.TreeModelListener l)
           
 java.lang.String toString()
           
 void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReflectedObject

public ReflectedObject(java.lang.Object o)

ReflectedObject

protected ReflectedObject(java.lang.Object o,
                          java.lang.Class t,
                          java.lang.String n,
                          java.lang.Object u)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getNumChildren

public int getNumChildren()

getChild

public ReflectedObject getChild(int index)

getChildren

public ReflectedObject[] getChildren()

getNumFields

public int getNumFields()

getField

public ReflectedObject getField(int index)

getFields

public ReflectedObject[] getFields()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getRoot

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

isLeaf

public boolean isLeaf(java.lang.Object parent)
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

addTreeModelListener

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

removeTreeModelListener

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