Package org.libvirt

Enum KeycodeSet

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<KeycodeSet>

    public enum KeycodeSet
    extends java.lang.Enum<KeycodeSet>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ATSET1
      AT set 1 key codes
      ATSET2
      AT set 2 key codes
      ATSET3
      AT set 3 key codes
      LINUX
      Linux key code set.
      OSX
      Apple OS-X virtual key codes
      RFB
      Key code set as used by GTK-VNC and QEMU
      USB
      Key code set as defined by the USB HID specification
      WIN32
      Microsoft Windows virtual key code set
      XT
      IBM XT keyboard code set
      XT_KBD  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static KeycodeSet valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static KeycodeSet[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • LINUX

        public static final KeycodeSet LINUX
        Linux key code set.

        Defined in the linux/input.h header, this set of key codes is able to represent any scan code from any type of keyboard.

      • XT

        public static final KeycodeSet XT
        IBM XT keyboard code set
      • ATSET1

        public static final KeycodeSet ATSET1
        AT set 1 key codes
      • ATSET2

        public static final KeycodeSet ATSET2
        AT set 2 key codes
      • ATSET3

        public static final KeycodeSet ATSET3
        AT set 3 key codes
      • OSX

        public static final KeycodeSet OSX
        Apple OS-X virtual key codes
      • USB

        public static final KeycodeSet USB
        Key code set as defined by the USB HID specification
      • RFB

        public static final KeycodeSet RFB
        Key code set as used by GTK-VNC and QEMU
    • Method Detail

      • values

        public static KeycodeSet[] 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 (KeycodeSet c : KeycodeSet.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static KeycodeSet valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null