public class DesignTreeNode extends Object implements TreeNode
DesignTreeModel
Constructor and Description |
---|
DesignTreeNode(DesignTreeModel model,
DesignTreeNode parent,
DesignComponent node)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
build()
Build the tree.
|
Enumeration<DesignTreeNode> |
children() |
void |
destroy() |
boolean |
getAllowsChildren() |
DesignTreeNode |
getChildAt(int index) |
int |
getChildCount() |
DesignComponent |
getDesignComponent() |
Component |
getDetailView() |
int |
getIndex(TreeNode child) |
DesignTreeNode |
getParent() |
boolean |
isLeaf() |
String |
toString() |
public DesignTreeNode(DesignTreeModel 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 Enumeration<DesignTreeNode> children()
public boolean getAllowsChildren()
getAllowsChildren
in interface TreeNode
public DesignTreeNode getChildAt(int index)
getChildAt
in interface TreeNode
public int getChildCount()
getChildCount
in interface TreeNode
public DesignTreeNode getParent()
public void destroy()
public Component getDetailView()