org.aspectj.ajde.ui.swing
Class SwingTreeViewNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.aspectj.ajde.ui.swing.SwingTreeViewNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode, IStructureViewNode

public class SwingTreeViewNode
extends javax.swing.tree.DefaultMutableTreeNode
implements IStructureViewNode

See Also:
Serialized Form

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
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.
 
Method Summary
 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()
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SwingTreeViewNode

public SwingTreeViewNode(IProgramElement programElement,
                         AbstractIcon icon,
                         java.util.List children)
Create a declaration node.


SwingTreeViewNode

public SwingTreeViewNode(IRelationship relationship,
                         AbstractIcon icon)
Create a relationship node.


SwingTreeViewNode

public SwingTreeViewNode(IProgramElement programElement,
                         AbstractIcon icon)
Create a link.

Method Detail

getStructureNode

public IProgramElement getStructureNode()
Specified by:
getStructureNode in interface IStructureViewNode

getIcon

public AbstractIcon getIcon()
Specified by:
getIcon in interface IStructureViewNode

add

public void add(IStructureViewNode child)
Description copied from interface: IStructureViewNode
Add a child node.

Specified by:
add in interface IStructureViewNode

add

public void add(IStructureViewNode child,
                int position)
Description copied from interface: IStructureViewNode
Add a child node.

Specified by:
add in interface IStructureViewNode

remove

public void remove(IStructureViewNode child)
Description copied from interface: IStructureViewNode
Remove a child node.

Specified by:
remove in interface IStructureViewNode

getChildren

public java.util.List getChildren()
Specified by:
getChildren in interface IStructureViewNode
Returns:
an empty list if there are no children

getKind

public IStructureViewNode.Kind getKind()
Specified by:
getKind in interface IStructureViewNode

getRelationshipName

public java.lang.String getRelationshipName()
Specified by:
getRelationshipName in interface IStructureViewNode

toString

public java.lang.String toString()
Overrides:
toString in class javax.swing.tree.DefaultMutableTreeNode