public class SwingTreeViewNode extends javax.swing.tree.DefaultMutableTreeNode implements IStructureViewNode
IStructureViewNode.Kind
Constructor and Description |
---|
SwingTreeViewNode(IProgramElement programElement,
AbstractIcon icon)
Create a link.
|
SwingTreeViewNode(IProgramElement programElement,
AbstractIcon icon,
java.util.List children)
Create a declaration node.
|
SwingTreeViewNode(IRelationship relationship,
AbstractIcon icon)
Create a relationship node.
|
Modifier and Type | Method and Description |
---|---|
void |
add(IStructureViewNode child)
Add a child node.
|
void |
add(IStructureViewNode child,
int position)
Add a child node.
|
java.util.List |
getChildren() |
AbstractIcon |
getIcon() |
IStructureViewNode.Kind |
getKind() |
java.lang.String |
getRelationshipName() |
IProgramElement |
getStructureNode() |
void |
remove(IStructureViewNode child)
Remove a child node.
|
java.lang.String |
toString() |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
public SwingTreeViewNode(IProgramElement programElement, AbstractIcon icon, java.util.List children)
public SwingTreeViewNode(IRelationship relationship, AbstractIcon icon)
public SwingTreeViewNode(IProgramElement programElement, AbstractIcon icon)
public IProgramElement getStructureNode()
getStructureNode
in interface IStructureViewNode
public AbstractIcon getIcon()
getIcon
in interface IStructureViewNode
public void add(IStructureViewNode child)
IStructureViewNode
add
in interface IStructureViewNode
public void add(IStructureViewNode child, int position)
IStructureViewNode
add
in interface IStructureViewNode
public void remove(IStructureViewNode child)
IStructureViewNode
remove
in interface IStructureViewNode
public java.util.List getChildren()
getChildren
in interface IStructureViewNode
public IStructureViewNode.Kind getKind()
getKind
in interface IStructureViewNode
public java.lang.String getRelationshipName()
getRelationshipName
in interface IStructureViewNode
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode