Uses of Class
com.vaadin.flow.component.ComponentEvent
-
Packages that use ComponentEvent Package Description com.vaadin.flow.component com.vaadin.flow.component.internal com.vaadin.flow.component.webcomponent -
-
Uses of ComponentEvent in com.vaadin.flow.component
Classes in com.vaadin.flow.component with type parameters of type ComponentEvent Modifier and Type Interface Description interfaceComponentEventListener<T extends ComponentEvent<?>>Generic listener for component events.Subclasses of ComponentEvent in com.vaadin.flow.component Modifier and Type Class Description static classAbstractField.ComponentValueChangeEvent<C extends Component,V>Value change event fired by components.classAttachEventEvent fired after aComponentis attached to the UI.static classBlurNotifier.BlurEvent<C extends Component>Represents the DOM event "blur".classClickEvent<C extends Component>Event fired when a component is clicked.classCompositionEndEventThe event when a composition is ended.classCompositionStartEventThe event when a composition is started.classCompositionUpdateEventThe event when a composition is updated.classDetachEventEvent fired before aComponentis detached from the UI.static classFocusNotifier.FocusEvent<C extends Component>Represents the DOM event "focus".classInputEventEvent fired when the component has received any type of input (e.g.classKeyDownEventThe event when a key is pressed.classKeyPressEventThe event when a key is pressed.classKeyUpEventThe event when a key is released.classPollEventAn event that is fired whenever a client polls the server for asynchronous UI updates.Methods in com.vaadin.flow.component with type parameters of type ComponentEvent Modifier and Type Method Description protected <T extends ComponentEvent<?>>
RegistrationComponent. addListener(Class<T> eventType, ComponentEventListener<T> listener)Adds a listener for an event of the given type.<T extends ComponentEvent<?>>
RegistrationComponentEventBus. addListener(Class<T> eventType, ComponentEventListener<T> listener)Adds a listener for the given event type.<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)Adds a listener for an event of the given type to thecomponent.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.static <T extends ComponentEvent<?>>
Constructor<T>ComponentEventBusUtil. getEventConstructor(Class<T> eventType)Gets the constructor to use for firing a component event, of the given type, based on a DOM event.static <T extends ComponentEvent<?>>
booleanComponentUtil. hasEventListener(Component component, Class<? extends T> eventType)Check if the component has at least one registered listener of the given event type.Methods in com.vaadin.flow.component with parameters of type ComponentEvent Modifier and Type Method Description protected voidComponent. fireEvent(ComponentEvent<?> componentEvent)Dispatches the event to all listeners registered for the event type.voidComponentEventBus. fireEvent(ComponentEvent event)Dispatches the event to all listeners registered for the event type.static <T extends Component>
voidComponentUtil. fireEvent(T component, ComponentEvent<? extends T> componentEvent)Dispatches the event to all listeners registered for the event type.Method parameters in com.vaadin.flow.component with type arguments of type ComponentEvent Modifier and Type Method Description static LinkedHashMap<String,Class<?>>ComponentEventBusUtil. getEventDataExpressions(Class<? extends ComponentEvent<?>> eventType)Gets a map of event data expression (forDomListenerRegistration.addEventData(String)) to Java type, with the same order as the parameters for the event constructor (as returned byComponentEventBusUtil.getEventConstructor(Class)).protected booleanComponent. hasListener(Class<? extends ComponentEvent> eventType)Checks if there is at least one listener registered for the given event type for this component.booleanComponentEventBus. hasListener(Class<? extends ComponentEvent> eventType)Checks if there is at least one listener registered for the given event type. -
Uses of ComponentEvent in com.vaadin.flow.component.internal
Subclasses of ComponentEvent in com.vaadin.flow.component.internal Modifier and Type Class Description classAbstractAttachDetachEventInternal helper forAttachEventandDetachEvent.classCompositionEventAbstract class for composition events.classKeyboardEventAbstract class for keyboard events.Methods in com.vaadin.flow.component.internal with type parameters of type ComponentEvent Modifier and Type Method Description <T extends ComponentEvent<?>>
Optional<Constructor<T>>EventDataCache. getEventConstructor(Class<T> eventType)Gets the cached DOM event constructor for the given event type.<T extends ComponentEvent<?>>
Constructor<T>EventDataCache. setEventConstructor(Class<T> eventType, Constructor<T> constructor)Stores the given DOM event constructor for the given event type in the cache.Method parameters in com.vaadin.flow.component.internal with type arguments of type ComponentEvent Modifier and Type Method 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. -
Uses of ComponentEvent in com.vaadin.flow.component.webcomponent
Subclasses of ComponentEvent in com.vaadin.flow.component.webcomponent Modifier and Type Class Description static classWebComponentUI.WebComponentConnectEventEvent used for sending the activation event for an exported web component from the client to the server.
-