Enum Class FunctionKeys

java.lang.Object
java.lang.Enum<FunctionKeys>
de.bytestore.hostinger.entity.FunctionKeys
All Implemented Interfaces:
io.jmix.core.metamodel.datatype.EnumClass<String>, Serializable, Comparable<FunctionKeys>, Constable

public enum FunctionKeys extends Enum<FunctionKeys> implements io.jmix.core.metamodel.datatype.EnumClass<String>
The FunctionKeys enum represents a set of standardized functional keys commonly used in keyboard input systems. Each functional key is associated with a unique identifier defined as a string, which corresponds to its escape sequence representation. Functionalities: - Provides a mechanism to retrieve the escape sequence of each function key through the `getId()` method. - Offers a static method `fromId(String id)` to obtain the corresponding FunctionKeys enum value from its string identifier. Enum Values: - F1 through F12: Represent the standard function keys with associated escape sequences. - CTRL: Represents the Control key with its respective identifier. Usage: This enum is primarily used in handling keyboard events, terminal input sequences, or mapping escape sequences to their respective function keys.
  • Enum Constant Details

  • Method Details

    • values

      public static FunctionKeys[] 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 FunctionKeys 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
    • fromId

      @Nullable public static FunctionKeys fromId(String id)