classpathhelper.eclipse.ui.packagebrowseview
Class ClassElement

java.lang.Object
  extended byclasspathhelper.util.AbstractTree
      extended byclasspathhelper.eclipse.ui.packagebrowseview.ClassElement
All Implemented Interfaces:
ITree

public class ClassElement
extends AbstractTree

Visual tree node representing a ClassDetail representing a class or interface.

Since:
1.2
Author:
bharris

Constructor Summary
ClassElement(ClassDescription description, CGClassLoader theClassLoader, boolean theDisplayContents)
           
 
Method Summary
 ITree[] getChildren()
          Getter for this nodes children.
 java.lang.String getClassName()
           
 Image getIconName()
          The associated Icon.
 boolean hasChildren()
          Does this node have children.
protected  void loadChildren()
          Method called to load the visual children of this node.
protected  void loadLocation()
          Loads locations associated with this class.
 java.lang.String toString()
           
 
Methods inherited from class classpathhelper.util.AbstractTree
addChild, addChildren, getParent, getRoot, removeAllChildren, removeChild, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassElement

public ClassElement(ClassDescription description,
                    CGClassLoader theClassLoader,
                    boolean theDisplayContents)
Parameters:
theClassLoader - The ClassLoader to load the detail information from.
theDisplayContents - boolean indicating whether or not the class should have children to display its contents.
Since:
1.2
Method Detail

getClassName

public java.lang.String getClassName()
Returns:
The name of the class associated with this element.
Since:
1.2

loadChildren

protected void loadChildren()
Method called to load the visual children of this node. The visual children of a class object are its dependent locations, unresolved classes or it's blocked locations.

Since:
1.2

loadLocation

protected void loadLocation()
Loads locations associated with this class.

Since:
1.2

getIconName

public Image getIconName()
Description copied from interface: ITree
The associated Icon.

Returns:
The Icon for this node.

hasChildren

public boolean hasChildren()
Description copied from interface: ITree
Does this node have children.

Specified by:
hasChildren in interface ITree
Overrides:
hasChildren in class AbstractTree

getChildren

public ITree[] getChildren()
Description copied from interface: ITree
Getter for this nodes children.

Specified by:
getChildren in interface ITree
Overrides:
getChildren in class AbstractTree

toString

public java.lang.String toString()