Interface KeyTyped

All Superinterfaces:
KeyEvent

public interface KeyTyped extends KeyEvent
An event indicating that a keyboard character key has been typed.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder of KeyTyped.
  • Method Summary

    Modifier and Type
    Method
    Description
    default char
    Returns the character corresponding to the typed key.
    default KeyCode
    Returns the code of the key.
    default KeyLocation
    Returns the location of the key on the keyboard.
    default KeyModifiers
    Returns the keyboard modifiers applied.
    Creates a new KeyTyped builder with the given required parameters.
  • Method Details

    • newBuilder

      static KeyTyped.Builder newBuilder(KeyCode keyCode)
      Creates a new KeyTyped builder with the given required parameters.
      Parameters:
      keyCode - the code of the key
      Returns:
      a new KeyTyped.Builder instance
    • keyCode

      default KeyCode keyCode()
      Description copied from interface: KeyEvent
      Returns the code of the key.
      Specified by:
      keyCode in interface KeyEvent
    • keyModifiers

      default KeyModifiers keyModifiers()
      Description copied from interface: KeyEvent
      Returns the keyboard modifiers applied.
      Specified by:
      keyModifiers in interface KeyEvent
    • keyLocation

      default KeyLocation keyLocation()
      Description copied from interface: KeyEvent
      Returns the location of the key on the keyboard.
      Specified by:
      keyLocation in interface KeyEvent
    • keyChar

      default char keyChar()
      Returns the character corresponding to the typed key.