Uses of Interface
com.vaadin.flow.dom.DomListenerRegistration
-
Packages that use DomListenerRegistration 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 -
-
Uses of DomListenerRegistration in com.vaadin.flow.component
Methods in com.vaadin.flow.component that return DomListenerRegistration Modifier and Type Method Description protected DomListenerRegistration
AbstractSinglePropertyField. getSynchronizationRegistration()
Returns the registration of the DOM event listener that synchronizes the property value.Method parameters in com.vaadin.flow.component with type arguments of type DomListenerRegistration Modifier and Type Method Description <T extends ComponentEvent<?>>
RegistrationComponentEventBus. 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<?>>
RegistrationComponentUtil. addListener(Component component, Class<T> eventType, ComponentEventListener<T> listener, Consumer<DomListenerRegistration> domListenerConsumer)
Adds a listener for an event of the given type to thecomponent
, and customizes the corresponding DOM event listener with the given consumer. -
Uses of DomListenerRegistration in com.vaadin.flow.data.value
Methods in com.vaadin.flow.data.value with parameters of type DomListenerRegistration Modifier and Type Method 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. -
Uses of DomListenerRegistration in com.vaadin.flow.dom
Methods in com.vaadin.flow.dom that return DomListenerRegistration Modifier and Type Method 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
Element. addEventListener(String eventType, DomEventListener listener)
Adds an event listener for the given event type.DomListenerRegistration
ElementStateProvider. addEventListener(StateNode node, String eventType, DomEventListener listener)
Adds a DOM event listener.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 leasttimeout
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 theevent.target
to the closest correspondingElement
on the server side, to be returned byDomEvent.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 thanperiod
milliseconds. -
Uses of DomListenerRegistration in com.vaadin.flow.dom.impl
Methods in com.vaadin.flow.dom.impl that return DomListenerRegistration Modifier and Type Method Description DomListenerRegistration
AbstractTextElementStateProvider. addEventListener(StateNode node, String eventType, DomEventListener listener)
DomListenerRegistration
BasicElementStateProvider. addEventListener(StateNode node, String eventType, DomEventListener listener)
DomListenerRegistration
ShadowRootStateProvider. addEventListener(StateNode node, String eventType, DomEventListener listener)
-
Uses of DomListenerRegistration in com.vaadin.flow.internal.nodefeature
Methods in com.vaadin.flow.internal.nodefeature that return DomListenerRegistration Modifier and Type Method Description DomListenerRegistration
ElementListenerMap. add(String eventType, DomEventListener listener)
Add eventData for an event type.
-