Enum Class KeyEventType

java.lang.Object
java.lang.Enum<KeyEventType>
com.avrix.enums.KeyEventType
All Implemented Interfaces:
Serializable, Comparable<KeyEventType>, Constable

public enum KeyEventType extends Enum<KeyEventType>
Enum representing the types of keyboard events.
  • Enum Constant Details

    • PRESS

      public static final KeyEventType PRESS
      Represents a key press event. This event is triggered when a key is initially pressed down.
    • REPEAT

      public static final KeyEventType REPEAT
      Represents a key repeat event. This event is triggered when a key is held down, and it continuously generates events after a short delay.
    • RELEASE

      public static final KeyEventType RELEASE
      Represents a key release event. This event is triggered when a key is released after being pressed.
  • Method Details

    • values

      public static KeyEventType[] 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

      public static KeyEventType 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