Package com.install4j.api.update
Enum ApplicationDisplayMode
- java.lang.Object
-
- java.lang.Enum<ApplicationDisplayMode>
-
- com.install4j.api.update.ApplicationDisplayMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ApplicationDisplayMode>
public enum ApplicationDisplayMode extends java.lang.Enum<ApplicationDisplayMode>
Enumeration class that represents the different display modes. These values are used as an argument forUpdateChecker.getUpdateDescriptor(String, ApplicationDisplayMode)
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSOLE
The invoking application runs on the command line.GUI
The invoking application runs with a Swing GUI.UNATTENDED
The invoking application does not take user input from a GUI or on the command line.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ApplicationDisplayMode
getFromIntValue(int value)
Convert int value to constant.int
getIntValue()
Convert to an int value.java.lang.String
toString()
static ApplicationDisplayMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ApplicationDisplayMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GUI
public static final ApplicationDisplayMode GUI
The invoking application runs with a Swing GUI. Displaying a proxy dialog is acceptable.
-
CONSOLE
public static final ApplicationDisplayMode CONSOLE
The invoking application runs on the command line. Asking for proxy information on the command line is acceptable.
-
UNATTENDED
public static final ApplicationDisplayMode UNATTENDED
The invoking application does not take user input from a GUI or on the command line. Proxy information cannot be supplied by the user.
-
-
Method Detail
-
values
public static ApplicationDisplayMode[] 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 (ApplicationDisplayMode c : ApplicationDisplayMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApplicationDisplayMode 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
-
getIntValue
public int getIntValue()
Convert to an int value.- Returns:
- the int value
-
getFromIntValue
public static ApplicationDisplayMode getFromIntValue(int value)
Convert int value to constant.- Parameters:
value
- the int value- Returns:
- the constant
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<ApplicationDisplayMode>
-
-