Enum KeyModifier

    • Enum Constant Detail

      • 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 Detail

      • values

        public static KeyModifier[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (KeyModifier c : KeyModifier.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static KeyModifier valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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