com.alee.managers.plugin.data
Enum PluginStatus

java.lang.Object
  extended by java.lang.Enum<PluginStatus>
      extended by com.alee.managers.plugin.data.PluginStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PluginStatus>

public enum PluginStatus
extends java.lang.Enum<PluginStatus>

Available plugin statuses.

Author:
Mikle Garin
See Also:
How to use PluginManager, PluginManager

Enum Constant Summary
detected
          Plugin was detected and waiting for futher actions.
failed
          Plugin failed to load due to plugin class initialization exception.
loaded
          Plugin successfuly loaded.
loading
          Plugin is being loaded.
 
Method Summary
 javax.swing.ImageIcon getIcon()
          Returns plugin status icon.
 java.lang.String getText()
          Returns plugin status text.
static PluginStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PluginStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

detected

public static final PluginStatus detected
Plugin was detected and waiting for futher actions.


loading

public static final PluginStatus loading
Plugin is being loaded.


loaded

public static final PluginStatus loaded
Plugin successfuly loaded.


failed

public static final PluginStatus failed
Plugin failed to load due to plugin class initialization exception.

Method Detail

values

public static PluginStatus[] 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 (PluginStatus c : PluginStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PluginStatus 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 name
java.lang.NullPointerException - if the argument is null

getIcon

public javax.swing.ImageIcon getIcon()
Returns plugin status icon.

Returns:
plugin status icon

getText

public java.lang.String getText()
Returns plugin status text.

Returns:
plugin status text