Module javafx.base

Class ObservableValueBase<T>

java.lang.Object
javafx.beans.value.ObservableValueBase<T>
All Implemented Interfaces:
Observable, ObservableValue<T>

public abstract class ObservableValueBase<T>
extends Object
implements ObservableValue<T>
A convenience class for creating implementations of ObservableValue. It contains all of the infrastructure support for value invalidation- and change event notification. This implementation can handle adding and removing listeners while the observers are being notified, but it is not thread-safe.
Since:
JavaFX 2.0
  • Constructor Details

    • ObservableValueBase

      public ObservableValueBase()
      Creates a default ObservableValueBase.
  • Method Details

    • fireValueChangedEvent

      protected void fireValueChangedEvent()
      Notify the currently registered observers of a value change. This implementation will ignore all adds and removes of observers that are done while a notification is processed. The changes take effect in the following call to fireValueChangedEvent.