Class AbstractKeyboardEvent

All Implemented Interfaces:
com.globalmentor.event.Event, FocusedInputEvent, GestureInputEvent, GuiseEvent, InputEvent, KeyboardEvent, Serializable
Direct Known Subclasses:
KeyPressEvent, KeyReleaseEvent

public abstract class AbstractKeyboardEvent extends AbstractFocusedGestureInputEvent implements KeyboardEvent
An abstract event providing information on a keyboard key event.
Author:
Garret Wilson
See Also:
  • Constructor Details

    • AbstractKeyboardEvent

      public AbstractKeyboardEvent(Object source, Key key, Key... keys)
      Source constructor.
      Parameters:
      source - The object on which the event initially occurred.
      key - The key that was pressed.
      keys - The keys that were pressed when this event was generated.
      Throws:
      NullPointerException - if the given source, key, and/or keys is null.
  • Method Details

    • getKey

      public Key getKey()
      Specified by:
      getKey in interface KeyboardEvent
      Returns:
      The key that was pressed.