| Package | Description |
|---|---|
| com.vaadin.flow.component | |
| com.vaadin.flow.data.value | |
| com.vaadin.flow.dom | |
| com.vaadin.flow.dom.impl | |
| com.vaadin.flow.internal.nodefeature |
| Modifier and Type | Method and Description |
|---|---|
protected DomListenerRegistration |
AbstractSinglePropertyField.getSynchronizationRegistration()
Returns the registration of the DOM event listener that synchronizes the
property value.
|
| Modifier and Type | Method and Description |
|---|---|
<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,
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. |
| Modifier and Type | Method and Description |
|---|---|
static void |
ValueChangeMode.applyChangeTimeout(ValueChangeMode mode,
int timeout,
DomListenerRegistration registration)
Applies the value change timeout of the given mode on the registration of
the DOM event listener that synchronizes.
|
| Modifier and Type | Method and Description |
|---|---|
DomListenerRegistration |
DomListenerRegistration.addEventData(String eventData)
Add a JavaScript expression for extracting event data.
|
default DomListenerRegistration |
DomListenerRegistration.addEventDataElement(String eventData)
Add a JavaScript expression for extracting an element as event data.
|
DomListenerRegistration |
ElementStateProvider.addEventListener(StateNode node,
String eventType,
DomEventListener listener)
Adds a DOM event listener.
|
DomListenerRegistration |
Element.addEventListener(String eventType,
DomEventListener listener)
Adds an event listener for the given event type.
|
DomListenerRegistration |
Element.addEventListener(String eventType,
DomEventListener listener,
String... eventDataExpressions)
Deprecated.
Instead, use the returned registration instance for adding
event data expressions
|
DomListenerRegistration |
Element.addPropertyChangeListener(String propertyName,
String domEventName,
PropertyChangeListener listener)
Adds a property change listener and configures the property to be
synchronized to the server when a given DOM event is fired.
|
default DomListenerRegistration |
DomListenerRegistration.debounce(int timeout)
Configures this listener to be notified only when at least
timeout milliseconds has passed since the last time the
event was triggered. |
DomListenerRegistration |
DomListenerRegistration.debounce(int timeout,
DebouncePhase firstPhase,
DebouncePhase... rest)
Configures the debouncing phases for which this listener should be
triggered.
|
default DomListenerRegistration |
DomListenerRegistration.mapEventTargetElement()
Marks that the DOM event should map the
event.target to the
closest corresponding Element on the server side, to be returned
by DomEvent.getEventTarget(). |
default DomListenerRegistration |
DomListenerRegistration.onUnregister(SerializableRunnable unregisterHandler)
Adds a handler that will be run when this registration is removed.
|
DomListenerRegistration |
DomListenerRegistration.setDisabledUpdateMode(DisabledUpdateMode disabledUpdateMode)
Configure whether this listener will be called even in cases when the
element is disabled.
|
DomListenerRegistration |
DomListenerRegistration.setFilter(String filter)
Sets a JavaScript expression that is used for filtering events to this
listener.
|
default DomListenerRegistration |
DomListenerRegistration.synchronizeProperty(String propertyName)
Marks that the DOM event of this registration should trigger
synchronization for the given property.
|
default DomListenerRegistration |
DomListenerRegistration.throttle(int period)
Configures this listener to not be notified more often than
period milliseconds. |
| Modifier and Type | Method and Description |
|---|---|
DomListenerRegistration |
ShadowRootStateProvider.addEventListener(StateNode node,
String eventType,
DomEventListener listener) |
DomListenerRegistration |
BasicElementStateProvider.addEventListener(StateNode node,
String eventType,
DomEventListener listener) |
DomListenerRegistration |
AbstractTextElementStateProvider.addEventListener(StateNode node,
String eventType,
DomEventListener listener) |
| Modifier and Type | Method and Description |
|---|---|
DomListenerRegistration |
ElementListenerMap.add(String eventType,
DomEventListener listener)
Add eventData for an event type.
|
Copyright © 2025. All rights reserved.