Package org.aspectj.ajde.ui.swing
Class SwingTreeViewNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
org.aspectj.ajde.ui.swing.SwingTreeViewNode
- All Implemented Interfaces:
Serializable,Cloneable,MutableTreeNode,TreeNode,IStructureViewNode
- Author:
- Mik Kersten
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aspectj.ajde.ui.IStructureViewNode
IStructureViewNode.Kind -
Field Summary
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject -
Constructor Summary
ConstructorsConstructorDescriptionSwingTreeViewNode(IProgramElement programElement, AbstractIcon icon) Create a link.SwingTreeViewNode(IProgramElement programElement, AbstractIcon icon, List children) Create a declaration node.SwingTreeViewNode(IRelationship relationship, AbstractIcon icon) Create a relationship node. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(IStructureViewNode child) Add a child node.voidadd(IStructureViewNode child, int position) Add a child node.getIcon()getKind()voidremove(IStructureViewNode child) Remove a child node.toString()Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
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
-
Constructor Details
-
SwingTreeViewNode
Create a declaration node. -
SwingTreeViewNode
Create a relationship node. -
SwingTreeViewNode
Create a link.
-
-
Method Details
-
getStructureNode
- Specified by:
getStructureNodein interfaceIStructureViewNode
-
getIcon
- Specified by:
getIconin interfaceIStructureViewNode
-
add
Description copied from interface:IStructureViewNodeAdd a child node.- Specified by:
addin interfaceIStructureViewNode
-
add
Description copied from interface:IStructureViewNodeAdd a child node.- Specified by:
addin interfaceIStructureViewNode
-
remove
Description copied from interface:IStructureViewNodeRemove a child node.- Specified by:
removein interfaceIStructureViewNode
-
getChildren
- Specified by:
getChildrenin interfaceIStructureViewNode- Returns:
- an empty list if there are no children
-
getKind
- Specified by:
getKindin interfaceIStructureViewNode
-
getRelationshipName
- Specified by:
getRelationshipNamein interfaceIStructureViewNode
-
toString
- Overrides:
toStringin classDefaultMutableTreeNode
-