| Package | Description |
|---|---|
| com.vaadin.flow.component |
| Modifier and Type | Class and Description |
|---|---|
class |
KeyEventListener<E extends KeyboardEvent>
A conditional event listener for
KeyboardEvents. |
| Modifier and Type | Method and Description |
|---|---|
default Registration |
AttachNotifier.addAttachListener(ComponentEventListener<AttachEvent> listener)
Adds a attach listener to this component.
|
default Registration |
BlurNotifier.addBlurListener(ComponentEventListener<BlurNotifier.BlurEvent<T>> listener)
Add a listener to blur DOM events.
|
default Registration |
ClickNotifier.addClickListener(ComponentEventListener<ClickEvent<T>> listener)
Adds a click listener to this component.
|
default Registration |
CompositionNotifier.addCompositionEndListener(ComponentEventListener<CompositionEndEvent> listener)
Adds a
compositionend listener to this component. |
default Registration |
CompositionNotifier.addCompositionStartListener(ComponentEventListener<CompositionStartEvent> listener)
Adds a
compositionstart listener to this component. |
default Registration |
CompositionNotifier.addCompositionUpdateListener(ComponentEventListener<CompositionUpdateEvent> listener)
Adds a
compositionupdate listener to this component. |
default Registration |
DetachNotifier.addDetachListener(ComponentEventListener<DetachEvent> listener)
Adds a detach listener to this component.
|
default Registration |
FocusNotifier.addFocusListener(ComponentEventListener<FocusNotifier.FocusEvent<T>> listener)
Add a listener to focus DOM events.
|
default Registration |
InputNotifier.addInputListener(ComponentEventListener<InputEvent> listener)
Adds an input listener to this component.
|
default Registration |
KeyNotifier.addKeyDownListener(ComponentEventListener<KeyDownEvent> listener)
Adds a
keydown listener to this component. |
default Registration |
KeyNotifier.addKeyDownListener(Key key,
ComponentEventListener<KeyDownEvent> listener,
KeyModifier... modifiers)
Adds a
keydown listener to this component, which will trigger
only if the keys involved in the event match the key and
modifiers parameters. |
default Registration |
KeyNotifier.addKeyPressListener(ComponentEventListener<KeyPressEvent> listener)
Adds a
keypress listener to this component. |
default Registration |
KeyNotifier.addKeyPressListener(Key key,
ComponentEventListener<KeyPressEvent> listener,
KeyModifier... modifiers)
Adds a
keypress listener to this component, which will trigger
only if the keys involved in the event match the key and
modifiers parameters. |
default Registration |
KeyNotifier.addKeyUpListener(ComponentEventListener<KeyUpEvent> listener)
Adds a
keyup listener to this component. |
default Registration |
KeyNotifier.addKeyUpListener(Key key,
ComponentEventListener<KeyUpEvent> listener,
KeyModifier... modifiers)
Adds a
keyup listener to this component, which will trigger only
if the keys involved in the event match the key and
modifiers parameters. |
<T extends ComponentEvent<?>> |
ComponentEventBus.addListener(Class<T> eventType,
ComponentEventListener<T> listener)
Adds a listener for the given event type.
|
protected <T extends ComponentEvent<?>> |
Component.addListener(Class<T> eventType,
ComponentEventListener<T> listener)
Adds a listener for an event of the given type.
|
<T extends ComponentEvent<?>> |
ComponentEventBus.addListener(Class<T> eventType,
ComponentEventListener<T> listener,
Consumer<DomListenerRegistration> domListenerConsumer)
Adds a listener for the given event type, and customizes the
corresponding DOM event listener with the given consumer.
|
static <T extends ComponentEvent<?>> |
ComponentUtil.addListener(Component component,
Class<T> eventType,
ComponentEventListener<T> listener)
Adds a listener for an event of the given type to the
component. |
static <T extends ComponentEvent<?>> |
ComponentUtil.addListener(Component component,
Class<T> eventType,
ComponentEventListener<T> listener,
Consumer<DomListenerRegistration> domListenerConsumer)
Adds a listener for an event of the given type to the
component,
and customizes the corresponding DOM event listener with the given
consumer. |
default Registration |
PollNotifier.addPollListener(ComponentEventListener<PollEvent> listener)
Add a poll listener.
|
| 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. |
Copyright © 2000–2021 Vaadin Ltd. All rights reserved.