|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--agentland.debug.MethodTreeModel
Handles the data representation for method trees, so that we don't have to build our own DefaultTreeModel instead. We can do this lazily, without having to descend through all the methods at startup time -- we just look at them as we go. Created: Tue Jan 22 14:27:48 2002
Constructor Summary | |
MethodTreeModel(String ifaceName)
|
Method Summary | |
void |
addTreeModelListener(TreeModelListener l)
Adds a listener for changes to this model. |
protected void |
fireTreeUpdate(boolean inserted,
TreePath parent,
List nodes)
Tell all the listeners about added or removed method nodes. |
Object |
getChild(Object parent,
int index)
Returns the child of parent at index index in the parent's child array. |
int |
getChildCount(Object parent)
Returns the number of children of parent. |
int |
getIndexOfChild(Object parent,
Object child)
Returns the index of child in parent. |
Object |
getRoot()
Returns the root of the tree. |
boolean |
isLeaf(Object node)
Returns true if node is a leaf. |
void |
removeTreeModelListener(TreeModelListener l)
Removes a listener previously added with addTreeModelListener(). |
void |
toggleMethods(TreePath path)
|
void |
valueForPathChanged(TreePath path,
Object newValue)
Messaged when the user has altered the value for the item identified by path to newValue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MethodTreeModel(String ifaceName) throws ClassNotFoundException
Method Detail |
public void toggleMethods(TreePath path)
protected void fireTreeUpdate(boolean inserted, TreePath parent, List nodes)
public Object getChild(Object parent, int index)
getChild
in interface TreeModel
public int getChildCount(Object parent)
getChildCount
in interface TreeModel
public int getIndexOfChild(Object parent, Object child)
getIndexOfChild
in interface TreeModel
public Object getRoot()
getRoot
in interface TreeModel
public boolean isLeaf(Object node)
isLeaf
in interface TreeModel
public void addTreeModelListener(TreeModelListener l)
addTreeModelListener
in interface TreeModel
public void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener
in interface TreeModel
public void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged
in interface TreeModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |