Interface SimpleChangeListener<T>

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

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

    • changed

      void changed(T oldValue, T newValue)
      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 value
      newValue - the new value
    • changed

      default void changed(javafx.beans.value.ObservableValue<? extends T> observable, T oldValue, T newValue)
      Specified by:
      changed in interface javafx.beans.value.ChangeListener<T>