Package resources.projects.pluginwizard
Enum ContentType
- java.lang.Object
-
- java.lang.Enum<ContentType>
-
- resources.projects.pluginwizard.ContentType
-
- All Implemented Interfaces:
IconProvider,java.io.Serializable,java.lang.Comparable<ContentType>
public enum ContentType extends java.lang.Enum<ContentType> implements IconProvider
An enumeration of the different kinds of pluggable content, including themes and libraries (which are stored and loaded like true plug-ins).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBundleFileExtension()Returns the file name extension, including initial dot, used by plug-in bundles that store plug-ins of this type.java.lang.StringgetDescription()Returns a localized description of the role played by this plug-in type.javax.swing.IcongetIcon()Returns a small icon that represents the plug-in type.java.lang.StringtoString()Returns a localized name for this kind of plug-in.static ContentTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ContentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVATED
public static final ContentType ACTIVATED
AnACTIVATEDplug-in.
-
INJECTED
public static final ContentType INJECTED
AnINJECTEDplug-in.
-
EXTENSION
public static final ContentType EXTENSION
AnEXTENSIONplug-in.
-
THEME
public static final ContentType THEME
A theme.
-
LIBRARY
public static final ContentType LIBRARY
A library bundle.
-
-
Method Detail
-
values
public static ContentType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ContentType c : ContentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContentType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getIcon
public javax.swing.Icon getIcon()
Returns a small icon that represents the plug-in type.- Specified by:
getIconin interfaceIconProvider- Returns:
- a small plug-in icon
-
getBundleFileExtension
public java.lang.String getBundleFileExtension()
Returns the file name extension, including initial dot, used by plug-in bundles that store plug-ins of this type.- Returns:
- the file name extension for the plug-in type, such as ".seplugin".
-
getDescription
public java.lang.String getDescription()
Returns a localized description of the role played by this plug-in type.- Returns:
- a description of the plug-in type
-
toString
public java.lang.String toString()
Returns a localized name for this kind of plug-in.- Overrides:
toStringin classjava.lang.Enum<ContentType>- Returns:
- the name of the plug-in type
-
-