Chapter 15 Flashcards
anonymous inner class
An inner class without a name.
event
A signal to the program that something has happened. Events are generated by external user actions, such as mouse movements, mouse button clicks, and keystrokes, or by the operating system, such as a timer. The program can choose to respond to an event or to ignore it.
evet-driven programming
Is to write GUI programs that respond to interactive events.
event handler
An object that handles the event
event-handler interface
An interface that defines a method for handing events.
event object
Contains whatever properties are pertinent to the event.
event source object/or source object
The object that generates the event.
functional interface/single abstract method interface
(SAM) An interface that has only one method.
inner class
A class embedded in another class. Inner classes enable you to define small auxiliary objects and pass units of behavior, thus making programs simple and concise.
key code
The key codes are constants defined in KeyCode.
lambda expression
Lambda expressions can be viewed as an anonymous class with a concise syntax.
observable object
Is an instance of the Observable interface