com.ibm.di.admin
Class DebuggerPanel.DebuggerWatchNode
java.lang.Object
com.ibm.di.admin.DebuggerPanel.DebuggerWatchNode
All Implemented Interfaces: Comparable
Enclosing class: DebuggerPanel
public class DebuggerPanel.DebuggerWatchNode extends Object implements Comparable
This class is the node class used by DebuggerWatchPanel's JTree model. It interprets and expands
values into trees of nodes. Currently the class understands Entry and related classes, Collection,
Hashtable and
DebuggerPanel.DebuggerWatchNode
public DebuggerPanel.DebuggerWatchNode (DebuggerPanel.DebuggerWatchPanel source,
DebuggerPanel.DebuggerWatchNode parent,
String name,
Object value)
DebuggerPanel.DebuggerWatchNode
public DebuggerPanel.DebuggerWatchNode (DebuggerPanel.DebuggerWatchNode parent,
String name,
Object value)
put
public void put (Object expression,
DebuggerPanel.DebuggerWatchNode node)
remove
public void remove (DebuggerPanel.DebuggerWatchNode node)
getChildByName
public DebuggerPanel.DebuggerWatchNode getChildByName (Object name)
getChildByName
public DebuggerPanel.DebuggerWatchNode getChildByName (ArrayList list,
Object name)
toString
public String toString ()
Overrides: toString
in class Object
hasChanged
public boolean hasChanged ()
update
public void update (Object value)
Updates this node with the new value. Each child is also told to
update itself and each node invokes the tree model listeners to
signal add/delete/change events on themselves.
Parameters: value
-
fireChildChanged
public void fireChildChanged (DebuggerPanel.DebuggerWatchNode child)
getTreePath
public TreePath getTreePath ()
Returns a TreePath object pointing to this node.
Returns: TreePath of this node
getChild
public Object getChild (int index)
getIndexOfChild
public int getIndexOfChild (Object child)
isLeaf
public boolean isLeaf ()
getChildCount
public int getChildCount ()
toList
public ArrayList toList ()
Convert the object value to tree nodes if possible.
Returns: Returns a list of DebuggerWatchNodes based on the class of "value"
toList
public ArrayList toList (DebuggerPanel.DebuggerWatchNode parent)
compareTo
public int compareTo (Object arg0)
Specified by: compareTo
in interface Comparable
getParent
public DebuggerPanel.DebuggerWatchNode getParent ()
setParent
public void setParent (DebuggerPanel.DebuggerWatchNode parent)
getName
public String getName ()
setName
public void setName (String name)
getFullName
public String getFullName ()
expandPath
public void expandPath (JTree tree,
int levels)
isWatch
public boolean isWatch ()
setWatch
public void setWatch (boolean watch)
getValue
public Object getValue ()
getSource
public DebuggerPanel.DebuggerWatchPanel getSource ()
setSource
public void setSource (DebuggerPanel.DebuggerWatchPanel source)