Package com.vaadin.copilot
Class HotswapEventBus
java.lang.Object
com.vaadin.flow.component.ComponentEventBus
com.vaadin.copilot.HotswapEventBus
- All Implemented Interfaces:
Serializable
public class HotswapEventBus
extends com.vaadin.flow.component.ComponentEventBus
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddListener(com.vaadin.flow.component.ComponentEventListener<HotswapEventBus.CopilotHotswapEvent> listener) Adds a listener to the event bus.static HotswapEventBusMethods inherited from class com.vaadin.flow.component.ComponentEventBus
addListener, addListener, fireEvent, getListeners, hasListener
-
Constructor Details
-
HotswapEventBus
public HotswapEventBus()Creates an event bus.
-
-
Method Details
-
getInstance
-
addListener
public com.vaadin.flow.shared.Registration addListener(com.vaadin.flow.component.ComponentEventListener<HotswapEventBus.CopilotHotswapEvent> listener) Adds a listener to the event bus.- Parameters:
listener- the listener to add- Returns:
- a registration that can be used to remove the listener
-