Enum Class ProgressIndicatorDelay

java.lang.Object
java.lang.Enum<ProgressIndicatorDelay>
com.iizix.gyro.ProgressIndicatorDelay
All Implemented Interfaces:
Serializable, Comparable<ProgressIndicatorDelay>, Constable

public enum ProgressIndicatorDelay extends Enum<ProgressIndicatorDelay>
The progress indicator delay.
Author:
Christopher Mindus
  • Enum Constant Details Link icon

    • DISABLED Link icon

      public static final ProgressIndicatorDelay DISABLED
      Progress indicator is disabled (ordinal value = 0).
    • IMMEDIATE Link icon

      public static final ProgressIndicatorDelay IMMEDIATE
      Immediate display of indicator at UI lock (ordinal value = 1).
    • SHORT Link icon

      public static final ProgressIndicatorDelay SHORT
      Short delay (about 300-500 milliseconds, but configurable for sessions, ordinal value = 2): 400 milliseconds.
    • NORMAL Link icon

      public static final ProgressIndicatorDelay NORMAL
      Normal delay (about 1-2 seconds, but configurable for sessions, ordinal value = 3): 1.5 seconds.
    • LONG Link icon

      public static final ProgressIndicatorDelay LONG
      Long delay (about 3-5 seconds, but configurable for sessions, ordinal value = 4): 3.5 seconds.
  • Field Details Link icon

    • delay Link icon

      public final int delay
      The delay in milliseconds.

      Values: -1 for never, 0 for immediate, otherwise the milliseconds delay value.

  • Method Details Link icon

    • values Link icon

      public static ProgressIndicatorDelay[] 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 Link icon

      public static ProgressIndicatorDelay valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromValue Link icon

      public static ProgressIndicatorDelay fromValue(int value)
      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.