org.xnap.pkg
Class DefaultPackageSection

java.lang.Object
  extended by org.xnap.pkg.DefaultPackageSection
All Implemented Interfaces:
PackageSection

public class DefaultPackageSection
extends java.lang.Object
implements PackageSection

See Also:
PackageManager

Constructor Summary
DefaultPackageSection(java.lang.String name, javax.swing.Icon icon)
           
 
Method Summary
 javax.swing.Icon getIcon()
          Returns a 16x16 icon.
 java.lang.String getName()
          Returns the name of the section.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultPackageSection

public DefaultPackageSection(java.lang.String name,
                             javax.swing.Icon icon)
Method Detail

getIcon

public javax.swing.Icon getIcon()
Description copied from interface: PackageSection
Returns a 16x16 icon. The icon is displayed next to the name.

Specified by:
getIcon in interface PackageSection
See Also:
PackageSection.getIcon()

getName

public java.lang.String getName()
Description copied from interface: PackageSection
Returns the name of the section.

Specified by:
getName in interface PackageSection
See Also:
PackageSection.getName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
getName()


Copyright © 2001-2005 XNap Team. All Rights Reserved.