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 broadcast
StateChangeEvents.- Since:
- 2020-07-08
- Author:
- miki
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddStateChangeListener(StateChangeListener<S, C> listener) Adds givenStateChangeListener.
-
Method Details
-
addStateChangeListener
Adds givenStateChangeListener.- Parameters:
listener- Listener to be notified aboutStateChangeEvents.- Returns:
- A
Registrationthat can be used to stop listening to the event.
-