Enum UpdatePolicy
- All Implemented Interfaces:
Serializable, Comparable<UpdatePolicy>, java.lang.constant.Constable
The policy attribute indicates the preference for how the JNLP Client should handle an application
update when it is known an update is available before the application is launched, and can have
one of the following three values: "always", "prompt-update", and "prompt-run".
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA value of "always" (default) means to always download updates without any prompt.A value of "prompt-run" means to ask the user if he/she wants to download and run the updated version, or cancel and abort running the application.A value of "prompt-update" means to ask the user if he/she wants to download and run the updated version, or launch the cached version. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()The attribute value name as used in the JSR-56 specification or theParser.static UpdatePolicyReturns the enum constant of this type with the specified name.static UpdatePolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
A value of "always" (default) means to always download updates without any prompt. -
PROMPT_UPDATE
A value of "prompt-update" means to ask the user if he/she wants to download and run the updated version, or launch the cached version. -
PROMPT_RUN
A value of "prompt-run" means to ask the user if he/she wants to download and run the updated version, or cancel and abort running the application.
-
-
Field Details
-
value
-
-
Constructor Details
-
UpdatePolicy
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getValue
-