Package com.vaadin.client.flow.reactive
Interface ReactiveValue
-
- All Known Implementing Classes:
MapProperty,NodeList,NodeMap
public interface ReactiveValueA 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
ReactiveEventRouterfor keeping track of listeners, firing events and registering the value as dependent to the current computation.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description elemental.events.EventRemoveraddReactiveValueChangeListener(ReactiveValueChangeListener reactiveValueChangeListener)Adds a listener that has a dependency to this value, and should be notified when this value changes.
-
-
-
Method Detail
-
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
-
-