| Package | Description |
|---|---|
| com.vaadin.flow.component | |
| com.vaadin.flow.component.internal | |
| com.vaadin.flow.component.webcomponent |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ComponentEventListener<T extends ComponentEvent<?>>
Generic listener for component events.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractField.ComponentValueChangeEvent<C extends Component,V>
Value change event fired by components.
|
class |
AttachEvent
Event fired after a
Component is attached to the UI. |
static class |
BlurNotifier.BlurEvent<C extends Component>
Represents the DOM event "blur".
|
class |
ClickEvent<C extends Component>
Event fired when a component is clicked.
|
class |
CompositionEndEvent
The event when a composition is ended.
|
class |
CompositionStartEvent
The event when a composition is started.
|
class |
CompositionUpdateEvent
The event when a composition is updated.
|
class |
DetachEvent
Event fired before a
Component is detached from the UI. |
static class |
FocusNotifier.FocusEvent<C extends Component>
Represents the DOM event "focus".
|
class |
InputEvent
Event fired when the component has received any type of input (e.g.
|
class |
KeyDownEvent
The event when a key is pressed.
|
class |
KeyPressEvent
The event when a key is pressed.
|
class |
KeyUpEvent
The event when a key is released.
|
class |
PollEvent
An event that is fired whenever a client polls the server for asynchronous UI
updates.
|
| Modifier and Type | Method and Description |
|---|---|
<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. |
static <T extends ComponentEvent<?>> |
ComponentEventBusUtil.getEventConstructor(Class<T> eventType)
Gets the constructor to use for firing a component event, of the given
type, based on a DOM event.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ComponentEventBus.fireEvent(ComponentEvent event)
Dispatches the event to all listeners registered for the event type.
|
protected void |
Component.fireEvent(ComponentEvent<?> componentEvent)
Dispatches the event to all listeners registered for the event type.
|
static <T extends Component> |
ComponentUtil.fireEvent(T component,
ComponentEvent<? extends T> componentEvent)
Dispatches the event to all listeners registered for the event type.
|
| Modifier and Type | Method and Description |
|---|---|
static LinkedHashMap<String,Class<?>> |
ComponentEventBusUtil.getEventDataExpressions(Class<? extends ComponentEvent<?>> eventType)
Gets a map of event data expression (for
Element.addEventListener(String, com.vaadin.flow.dom.DomEventListener, String...)
) to Java type, with the same order as the parameters for the event
constructor (as returned by ComponentEventBusUtil.getEventConstructor(Class)). |
boolean |
ComponentEventBus.hasListener(Class<? extends ComponentEvent> eventType)
Checks if there is at least one listener registered for the given event
type.
|
protected boolean |
Component.hasListener(Class<? extends ComponentEvent> eventType)
Checks if there is at least one listener registered for the given event
type for this component.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractAttachDetachEvent
Internal helper for
AttachEvent and DetachEvent. |
class |
CompositionEvent
Abstract class for composition events.
|
class |
KeyboardEvent
Abstract class for keyboard events.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends ComponentEvent<?>> |
EventDataCache.getEventConstructor(Class<T> eventType)
Gets the cached DOM event constructor for the given event type.
|
<T extends ComponentEvent<?>> |
EventDataCache.setEventConstructor(Class<T> eventType,
Constructor<T> constructor)
Stores the given DOM event constructor for the given event type in the
cache.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<LinkedHashMap<String,Class<?>>> |
EventDataCache.getDataExpressions(Class<? extends ComponentEvent<?>> eventType)
Gets the cached data expressions for the given event type.
|
LinkedHashMap<String,Class<?>> |
EventDataCache.setDataExpressions(Class<? extends ComponentEvent<?>> eventType,
LinkedHashMap<String,Class<?>> expressions)
Stores the given data expressions for the given event type in the cache.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
WebComponentUI.WebComponentConnectEvent
Event used for sending the activation event for an exported web component
from the client to the server.
|
Copyright © 2000–2025 Vaadin Ltd. All rights reserved.