Package com.vaadin.client.flow.reactive
Interface ReactiveValue
- All Known Implementing Classes:
MapProperty,NodeList,NodeMap
public interface ReactiveValue
A reactive value fires reactive value change events when its value changes
and registers itself as dependent on the current computation when the value
is accessed.
A reactive value typically uses a ReactiveEventRouter for keeping
track of listeners, firing events and registering the value as dependent to
the current computation.
- Since:
- 1.0
- Author:
- Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptionelemental.events.EventRemoveraddReactiveValueChangeListener(ReactiveValueChangeListener reactiveValueChangeListener) Adds a listener that has a dependency to this value, and should be notified when this value changes.
-
Method Details
-
addReactiveValueChangeListener
elemental.events.EventRemover addReactiveValueChangeListener(ReactiveValueChangeListener reactiveValueChangeListener) Adds a listener that has a dependency to this value, and should be notified when this value changes.- Parameters:
reactiveValueChangeListener- the listener to add- Returns:
- an event remover that can be used for removing the added listener
-