org.xnap.commons.pkg
Class DefaultPackageSection

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

public class DefaultPackageSection
extends Object
implements PackageSection

See Also:
PackageManager

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

Constructor Detail

DefaultPackageSection

public DefaultPackageSection(String name,
                             Icon icon)
Method Detail

getIcon

public 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 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 String toString()
Overrides:
toString in class Object
See Also:
getName()


Copyright © 2004-2006 XNap Commons Team. All Rights Reserved.