Class HostKeyEvent


  • public class HostKeyEvent
    extends java.lang.Object
    Key event for Host, like Java AWT's KeyEvent, i.e. not SWT.
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      ConstructorDescription
      HostKeyEvent​(int vk, boolean isShiftDown, boolean isControlDown, boolean isAltDown)
      Constructor.
      HostKeyEvent​(int vk, boolean isShiftDown, boolean isControlDown, boolean isAltDown, boolean isRightSide)
      Constructor for Right Side.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      intgetKey()
      Gets the key.
      intgetSendKey()
      Gets the send key value, 0x1000 for right side, 0x2000 for Shift, 0x4000 for Control and 0x8000 for Alt.
      booleanisRightSide()
      Checks for right side.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • isShiftDown

        public final boolean isShiftDown
        The Shift key state.
      • isControlDown

        public final boolean isControlDown
        The Control key state.
      • isAltDown

        public final boolean isAltDown
        The Alt key state.
    • Constructor Detail

      • HostKeyEvent

        public HostKeyEvent​(int vk,
                            boolean isShiftDown,
                            boolean isControlDown,
                            boolean isAltDown)
        Constructor.
      • HostKeyEvent

        public HostKeyEvent​(int vk,
                            boolean isShiftDown,
                            boolean isControlDown,
                            boolean isAltDown,
                            boolean isRightSide)
        Constructor for Right Side.
    • Method Detail

      • getKey

        public int getKey()
        Gets the key.
      • isRightSide

        public boolean isRightSide()
        Checks for right side.
      • getSendKey

        public int getSendKey()
        Gets the send key value, 0x1000 for right side, 0x2000 for Shift, 0x4000 for Control and 0x8000 for Alt.