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 Detail

      • addStateChangeListener

        com.vaadin.flow.shared.Registration addStateChangeListener​(StateChangeListener<S,​C> listener)
        Parameters:
        listener - Listener to be notified about StateChangeEvents.
        Returns:
        A Registration that can be used to stop listening to the event.