Class KeyEventGenerator


  • public class KeyEventGenerator
    extends java.lang.Object
    Generates a KeyEvent using the given information. Generally used internally. Please see the implementations of AbstractKeyEvent for creating and sending events Automatically sets all internal fields of the key event to emulate system events where available. NOTE - the methods that take a char do not verify against the Key list! Internal information will not be set correctly.
    • Constructor Detail

      • KeyEventGenerator

        public KeyEventGenerator()
    • Method Detail

      • generatePressed

        public static java.awt.event.KeyEvent generatePressed​(Key key)
      • generatePressed

        public static java.awt.event.KeyEvent generatePressed​(Key key,
                                                              KeyLocation location)
      • generatePressed

        public static java.awt.event.KeyEvent generatePressed​(Key key,
                                                              KeyLocation location,
                                                              int modifierOverride)
      • generatePressed

        public static java.awt.event.KeyEvent generatePressed​(char character)
      • generateReleased

        public static java.awt.event.KeyEvent generateReleased​(Key key)
      • generateReleased

        public static java.awt.event.KeyEvent generateReleased​(Key key,
                                                               KeyLocation location)
      • generateReleased

        public static java.awt.event.KeyEvent generateReleased​(Key key,
                                                               KeyLocation location,
                                                               int modifierOverride)
      • generateReleased

        public static java.awt.event.KeyEvent generateReleased​(char character)
      • generateTyped

        public static java.awt.event.KeyEvent generateTyped​(Key key)
      • generateTyped

        public static java.awt.event.KeyEvent generateTyped​(Key key,
                                                            int modifierOverride)
      • generateTyped

        public static java.awt.event.KeyEvent generateTyped​(char character)