Class AbstractKeyboardEvent

    • Constructor Detail

      • AbstractKeyboardEvent

        public AbstractKeyboardEvent​(java.lang.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:
        java.lang.NullPointerException - if the given source, key, and/or keys is null.
    • Method Detail

      • getKey

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