Uses of Interface
com.vaadin.flow.dom.DomListenerRegistration
Packages that use DomListenerRegistration
Package
Description
-
Uses of DomListenerRegistration in com.vaadin.flow.component
Methods in com.vaadin.flow.component that return DomListenerRegistrationModifier and TypeMethodDescriptionprotected DomListenerRegistrationAbstractSinglePropertyField.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 DomListenerRegistrationModifier and TypeMethodDescription<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.component.react
Methods in com.vaadin.flow.component.react that return DomListenerRegistrationModifier and TypeMethodDescriptionprotected <T> DomListenerRegistrationReactAdapterComponent.addStateChangeListener(String stateName, com.fasterxml.jackson.core.type.TypeReference<T> typeReference, SerializableConsumer<T> listener) Adds the specified listener for the state change event in the React adapter.protected <T> DomListenerRegistrationReactAdapterComponent.addStateChangeListener(String stateName, Class<T> typeClass, SerializableConsumer<T> listener) Adds the specified listener for the state change event in the React adapter. -
Uses of DomListenerRegistration in com.vaadin.flow.data.value
Methods in com.vaadin.flow.data.value with parameters of type DomListenerRegistrationModifier and TypeMethodDescriptionstatic voidValueChangeMode.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 DomListenerRegistrationModifier and TypeMethodDescriptionDomListenerRegistration.addEventData(String eventData) Add a JavaScript expression for extracting event data.default DomListenerRegistrationDomListenerRegistration.addEventDataElement(String eventData) Add a JavaScript expression for extracting an element as event data.Element.addEventListener(String eventType, DomEventListener listener) Adds an event listener for the given event type.ElementStateProvider.addEventListener(StateNode node, String eventType, DomEventListener listener) Adds a DOM event listener.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.DomListenerRegistration.allowInert()Configures the event listener to bypass the server side security checks for modality.default DomListenerRegistrationDomListenerRegistration.debounce(int timeout) Configures this listener to be notified only when at leasttimeoutmilliseconds has passed since the last time the event was triggered.DomListenerRegistration.debounce(int timeout, DebouncePhase firstPhase, DebouncePhase... rest) Configures the debouncing phases for which this listener should be triggered.default DomListenerRegistrationDomListenerRegistration.mapEventTargetElement()Marks that the DOM event should map theevent.targetto the closest correspondingElementon the server side, to be returned byDomEvent.getEventTarget().default DomListenerRegistrationDomListenerRegistration.onUnregister(SerializableRunnable unregisterHandler) Adds a handler that will be run when this registration is removed.default DomListenerRegistrationDomListenerRegistration.preventDefault()Tries to prevent the default behavior of the event in the browser, such as shortcut action on key press or context menu on "right click".DomListenerRegistration.setDisabledUpdateMode(DisabledUpdateMode disabledUpdateMode) Configure whether this listener will be called even in cases when the element is disabled.Sets a JavaScript expression that is used for filtering events to this listener.default DomListenerRegistrationDomListenerRegistration.stopPropagation()Stops propagation of the event to upper level DOM elements.default DomListenerRegistrationDomListenerRegistration.synchronizeProperty(String propertyName) Marks that the DOM event of this registration should trigger synchronization for the given property.default DomListenerRegistrationDomListenerRegistration.throttle(int period) Configures this listener to not be notified more often thanperiodmilliseconds. -
Uses of DomListenerRegistration in com.vaadin.flow.dom.impl
Methods in com.vaadin.flow.dom.impl that return DomListenerRegistrationModifier and TypeMethodDescriptionAbstractTextElementStateProvider.addEventListener(StateNode node, String eventType, DomEventListener listener) BasicElementStateProvider.addEventListener(StateNode node, String eventType, DomEventListener listener) 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 DomListenerRegistrationModifier and TypeMethodDescriptionElementListenerMap.add(String eventType, DomEventListener listener) Add eventData for an event type.