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 SummaryEnum ConstantsEnum 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 SummaryFields
- Method SummaryModifier and TypeMethodDescription- static ProgressIndicatorDelay- fromValue- (int value) Returns a delay from a value.- static ProgressIndicatorDelayReturns 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- DISABLEDProgress indicator is disabled (ordinal value = 0).
- IMMEDIATEImmediate display of indicator at UI lock (ordinal value = 1).
- SHORTShort delay (about 300-500 milliseconds, but configurable for sessions, ordinal value = 2).
- NORMALNormal delay (about 1-2 seconds, but configurable for sessions, ordinal value = 3).
- LONGLong delay (about 3-5 seconds, but configurable for sessions, ordinal value = 4).
 
- Field Details- delaypublic final int delayThe delay in milliseconds.- Values: -1 for never, 0 for immediate, otherwise the milliseconds delay value. 
 
- Method Details- valuesReturns 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
 
- valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- fromValueReturns 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.