Interface IChangeListener<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A change listener is notified when the value of an
ObjectProperty changes.-
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ObjectProperty<T> property, T oldValue, T newValue) Called when the value of a givenObjectPropertychanges.
-
Method Details
-
apply
Called when the value of a givenObjectPropertychanges.- Parameters:
property- TheObjectPropertythat is responsible for the change. Can be one of multiple differentObjectPropertys if they share the sameValueHandle. SO BE CAREFUL!oldValue- The old value of theObjectProperty.newValue- The new value of theObjectProperty.- API Note:
- Do NOT update the value the
ObjectPropertyfrom within anIChangeListener. Doing so will result in aStackOverflowError.
-