E - the type of the KeyboardEventpublic class KeyEventListener<E extends KeyboardEvent> extends Object implements ComponentEventListener<E>
KeyboardEvents.| Constructor and Description |
|---|
KeyEventListener(ComponentEventListener<E> listener,
Key key,
KeyModifier... modifiers)
Create a listener which will delegate to
listener only if
key is the target key. |
| Modifier and Type | Method and Description |
|---|---|
void |
onComponentEvent(E event)
Invoked when a component event has been fired.
|
public KeyEventListener(ComponentEventListener<E> listener, Key key, KeyModifier... modifiers)
listener only if
key is the target key. If any modifiers is required, the
delegation occurs only if all the modifiers keys where pressed.listener - the listener to delegatekey - the key to checkmodifiers - the optional modifier keyspublic void onComponentEvent(E event)
ComponentEventListeneronComponentEvent in interface ComponentEventListener<E extends KeyboardEvent>event - component eventCopyright © 2025. All rights reserved.