Module javafx.base

Interface ChangeListener<T>

    • Method Summary

      Modifier and Type Method Description
      void changed​(ObservableValue<? extends T> observable, T oldValue, T newValue)
      Called when the value of an ObservableValue changes.
    • Method Detail

      • changed

        void changed​(ObservableValue<? extends T> observable,
                     T oldValue,
                     T newValue)
        Called when the value of an ObservableValue changes.

        In general, it 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