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 Summary
Constructors Constructor Description ObservableValueBase()Creates a defaultObservableValueBase. -
Method Summary
Modifier and Type Method Description protected voidfireValueChangedEvent()Notify the currently registered observers of a value change.Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface javafx.beans.Observable
addListener, removeListenerMethods declared in interface javafx.beans.value.ObservableValue
addListener, getValue, removeListener
-
Constructor Details
-
ObservableValueBase
public ObservableValueBase()Creates a defaultObservableValueBase.
-
-
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.
-