classpathhelper.eclipse.ui.packagebrowseview
Class ContentElement

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

public class ContentElement
extends AbstractTree

Visual tree node representing a ContentDetail representing a resource in the classpath.

Since:
1.2
Author:
bharris

Constructor Summary
ContentElement(ContentDescription content, CGClassLoader theClassLoader, boolean theDisplayContents)
           
 
Method Summary
 ITree[] getChildren()
          Getter for this nodes children.
 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 all the locations associated with this content.
 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

ContentElement

public ContentElement(ContentDescription content,
                      CGClassLoader theClassLoader,
                      boolean theDisplayContents)
Parameters:
content - The description of the content represented by this object.
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

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 all the locations associated with this content.

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()