- All Superinterfaces:
javafx.beans.value.ChangeListener<T>
- 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 SimpleChangeListener<T>
extends javafx.beans.value.ChangeListener<T>
Simple
ChangeListener that only notifies about the old and new value but not about the changed observable.
Useful if you register listeners to a specific observable, so that the observable is clear from the context.-
Method Summary
-
Method Details
-
changed
Called when the value of an observable changes.In general, it is considered bad practice to modify the observed value in this method.
- Parameters:
oldValue- the old valuenewValue- the new value
-
changed
default void changed(javafx.beans.value.ObservableValue<? extends T> observable, T oldValue, T newValue) - Specified by:
changedin interfacejavafx.beans.value.ChangeListener<T>
-