All Packages Class Hierarchy This Package Previous Next Index
Object | +----symantec.itools.db.beans.dbnav.model.TreeNodeComponent
This class represents the Component from the Composite design pattern. The default implementation is for a Leaf.
The other participants in Composite pattern are: TreeNodeLeaf - the Leaf TreeNodeComposite - the Composite TreeNodeBuilder - the Client
TreeNode
at index
childIndex
.
TreeNode
s the receiver
contains.
node
in the receivers children.
TreeNode
of the receiver.
toString()
method here is very important
public TreeNodeComponent()
public TreeNodeComponent(DataItem dataItem)
public void addChild(TreeNodeComponent child)
public java.util.Enumeration children()
public boolean getAllowsChildren()
public com.sun.java.swing.tree.TreeNode getChildAt(int childIndex)
TreeNode
at index
childIndex
.
public int getChildCount()
TreeNode
s the receiver
contains.
public symantec.itools.db.beans.dbnav.model.DataItem getDataItem()getIndex
public int getIndex(TreeNode node)
node
in the receivers children.
If the receiver does not contain node
, -1 will be
returned.
public com.sun.java.swing.tree.TreeNode getParent()
TreeNode
of the receiver.
public boolean isLeaf()
public void removeChild(TreeNodeComponent child)
public void setDataItem(DataItem dataItem)setParent
public void setParent(TreeNodeComponent parent)toString
public java.lang.String toString()
toString()
method here is very important
All Packages Class Hierarchy This Package Previous Next Index