public class DesignTreeNode
extends java.lang.Object
implements javax.swing.tree.TreeNode
DesignTreeModel
Constructor and Description |
---|
DesignTreeNode(DesignTreeModelImpl model,
DesignTreeNode parent,
DesignComponent node)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
build()
Build the tree.
|
java.util.Enumeration<DesignTreeNode> |
children() |
void |
destroy() |
boolean |
getAllowsChildren() |
DesignTreeNode |
getChildAt(int index) |
int |
getChildCount() |
DesignComponent |
getDesignComponent() |
java.awt.Component |
getDetailView() |
int |
getIndex(javax.swing.tree.TreeNode child) |
DesignTreeNode |
getParent() |
boolean |
isLeaf() |
java.lang.String |
toString() |
public DesignTreeNode(DesignTreeModelImpl model, DesignTreeNode parent, DesignComponent node)
model
- The tree model this node belongs to.parent
- The parent node.node
- The structure node this is modelling.public void build()
public DesignComponent getDesignComponent()
public java.util.Enumeration<DesignTreeNode> children()
children
in interface javax.swing.tree.TreeNode
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
public DesignTreeNode getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
public int getIndex(javax.swing.tree.TreeNode child)
getIndex
in interface javax.swing.tree.TreeNode
public DesignTreeNode getParent()
getParent
in interface javax.swing.tree.TreeNode
public java.lang.String toString()
toString
in class java.lang.Object
public void destroy()
public java.awt.Component getDetailView()