Module javafx.base

Interface ChangeListener<T>

    • Method Detail

      • changed

        void changed​(ObservableValue<? extends T> observable,
                     T oldValue,
                     T newValue)
        This method needs to be provided by an implementation of ChangeListener. It is called if the value of an ObservableValue changes.

        In general, it is considered bad practice to modify the observed value in this method.

        observable - The ObservableValue which value changed
        oldValue - The old value
        newValue - The new value