classpathhelper.eclipse.ui.packagebrowseview
Class PackageElement

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

public class PackageElement
extends AbstractTree

Element representing a Java package. Classes are organized by package to help organize the display of class information.

Implementation Notes

This class uses lazy loading to populate its children only when it is visually expanded.

Since:
1.2
Author:
bharris

Field Summary
static java.lang.String DEFAULT_PKG_LABEL
           
 
Constructor Summary
PackageElement(Package thePackage, CGClassLoader theClassLoader)
           
 
Method Summary
 ITree[] getChildren()
          Getter for this nodes children.
 Image getIconName()
          The associated Icon.
 boolean hasChildren()
          Does this node have children.
 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
 

Field Detail

DEFAULT_PKG_LABEL

public static final java.lang.String DEFAULT_PKG_LABEL
See Also:
Constant Field Values
Constructor Detail

PackageElement

public PackageElement(Package thePackage,
                      CGClassLoader theClassLoader)
Parameters:
theClassLoader - The classloader loading this location.
Since:
1.2
Method Detail

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