Package org.vaadin.miki.events.state
Interface StateChangeNotifier<S extends Serializable,C extends com.vaadin.flow.component.Component & HasState<S>>
-
- Type Parameters:
S- State type.C- Component type.
- All Known Implementing Classes:
MultiClickButton
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface StateChangeNotifier<S extends Serializable,C extends com.vaadin.flow.component.Component & HasState<S>>
Marker interface for objects that broadcastStateChangeEvents.- Since:
- 2020-07-08
- Author:
- miki
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.vaadin.flow.shared.RegistrationaddStateChangeListener(StateChangeListener<S,C> listener)Adds givenStateChangeListener.
-
-
-
Method Detail
-
addStateChangeListener
com.vaadin.flow.shared.Registration addStateChangeListener(StateChangeListener<S,C> listener)
Adds givenStateChangeListener.- Parameters:
listener- Listener to be notified aboutStateChangeEvents.- Returns:
- A
Registrationthat can be used to stop listening to the event.
-
-