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 is is considered bad practice to modify the observed value in this method.

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