Package io.jmix.flowui.kit.event
Class EventBus
java.lang.Object
io.jmix.flowui.kit.event.EventBus
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<E extends EventObject>
com.vaadin.flow.shared.RegistrationaddListener
(Class<E> eventType, Consumer<E> listener) <E extends EventObject>
voidfireEvent
(E event) <E extends EventObject>
booleanhasListener
(Class<E> eventType) protected Consumer[]
newListenersArray
(int length) <E extends EventObject>
voidremoveListener
(Class<E> eventType) <E extends EventObject>
voidremoveListener
(Class<E> eventType, Consumer<E> listener)
-
Field Details
-
EVENTS_MAP_EXPECTED_MAX_SIZE
protected static final int EVENTS_MAP_EXPECTED_MAX_SIZE- See Also:
-
EMPTY_LISTENERS_ARRAY
-
events
-
-
Constructor Details
-
EventBus
public EventBus()
-
-
Method Details
-
addListener
public <E extends EventObject> com.vaadin.flow.shared.Registration addListener(Class<E> eventType, Consumer<E> listener) -
hasListener
-
fireEvent
-
removeListener
-
removeListener
-
newListenersArray
-