Enum Class KeyModifier

java.lang.Object
java.lang.Enum<KeyModifier>
com.vaadin.flow.component.KeyModifier
All Implemented Interfaces:
Key, Serializable, Comparable<KeyModifier>, Constable

public enum KeyModifier extends Enum<KeyModifier> implements Key
Modifier keys.
Since:
1.0
  • Enum Constant Details

    • SHIFT

      public static final KeyModifier SHIFT
      KeyModifier for "Shift" key.
    • CONTROL

      public static final KeyModifier CONTROL
      KeyModifier for "Control" key.
    • ALT

      public static final KeyModifier ALT
      KeyModifier for "Alt" key.
    • ALT_GRAPH

      public static final KeyModifier ALT_GRAPH
      KeyModifier for "Alt Graph" key.
    • META

      public static final KeyModifier META
      KeyModifier for "Meta" key.
  • Method Details

    • values

      public static KeyModifier[] 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 KeyModifier 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
    • getKeys

      public List<String> getKeys()
      Gets the key value.
      Specified by:
      getKeys in interface Key
      Returns:
      the key value
    • of

      public static KeyModifier of(String key)
      Returns the KeyModifier for key.
      Parameters:
      key - the key value
      Returns:
      the KeyModifier