Package com.iizix.gyro
Enum Class ProgressIndicatorDelay
- All Implemented Interfaces:
Serializable
,Comparable<ProgressIndicatorDelay>
,Constable
The progress indicator delay.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionProgress indicator is disabled (ordinal value = 0).Immediate display of indicator at UI lock (ordinal value = 1).Long delay (about 3-5 seconds, but configurable for sessions, ordinal value = 4).Normal delay (about 1-2 seconds, but configurable for sessions, ordinal value = 3).Short delay (about 300-500 milliseconds, but configurable for sessions, ordinal value = 2).Field Summary
Method Summary
Modifier and TypeMethodDescriptionstatic ProgressIndicatorDelay
fromValue
(int value) Returns a delay from a value.static ProgressIndicatorDelay
Returns the enum constant of this class with the specified name.static ProgressIndicatorDelay[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
DISABLED
Progress indicator is disabled (ordinal value = 0).IMMEDIATE
Immediate display of indicator at UI lock (ordinal value = 1).SHORT
Short delay (about 300-500 milliseconds, but configurable for sessions, ordinal value = 2).NORMAL
Normal delay (about 1-2 seconds, but configurable for sessions, ordinal value = 3).LONG
Long delay (about 3-5 seconds, but configurable for sessions, ordinal value = 4).
Field Details
delay
public final int delayThe delay in milliseconds.Values: -1 for never, 0 for immediate, otherwise the milliseconds delay value.
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
fromValue
Returns a delay from a value.- Parameters:
value
- The value (should be 0-4), otherwise NORMAL is returned.- Returns:
- If the value is out of range, NORMAL is returned.