Package me.friwi.jcefmaven
Enum EnumProgress
- java.lang.Object
-
- java.lang.Enum<EnumProgress>
-
- me.friwi.jcefmaven.EnumProgress
-
- All Implemented Interfaces:
Serializable,Comparable<EnumProgress>
public enum EnumProgress extends Enum<EnumProgress>
Enum representing all major steps in the setup process for JCef.- Author:
- Fritz Windisch
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOWNLOADINGDownloading the native bundle from GitHub or central repository to the installation directory.EXTRACTINGExtract the downloaded/located native bundle to the installation directory.INITIALIZEDJCef initialization complete.INITIALIZINGInitialize JCef for the corresponding platform.INSTALLPerform steps on the extracted files to make them fully functional.LOCATINGInstallation is being located:
-
Field Summary
Fields Modifier and Type Field Description static floatNO_ESTIMATIONMagic value used to indicate that there is no progress estimation for the current installation step.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EnumProgressvalueOf(String name)Returns the enum constant of this type with the specified name.static EnumProgress[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOCATING
public static final EnumProgress LOCATING
Installation is being located:
- is there already an installation present?
- if not: is the native bundle on classpath?
If the installation is present, skip to
INITIALIZING.If the native bundle is present, skip to
EXTRACTING.Else go to
DOWNLOADING.
-
DOWNLOADING
public static final EnumProgress DOWNLOADING
Downloading the native bundle from GitHub or central repository to the installation directory.
-
EXTRACTING
public static final EnumProgress EXTRACTING
Extract the downloaded/located native bundle to the installation directory.
-
INSTALL
public static final EnumProgress INSTALL
Perform steps on the extracted files to make them fully functional. Mark installation as complete.
-
INITIALIZING
public static final EnumProgress INITIALIZING
Initialize JCef for the corresponding platform.
-
INITIALIZED
public static final EnumProgress INITIALIZED
JCef initialization complete.
-
-
Field Detail
-
NO_ESTIMATION
public static final float NO_ESTIMATION
Magic value used to indicate that there is no progress estimation for the current installation step.- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static EnumProgress[] 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 (EnumProgress c : EnumProgress.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EnumProgress valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-