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 Summary
| Constructor | Description |
|---|---|
ObservableValueBase() | Creates a default ObservableValueBase. |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
protected void | fireValueChangedEvent() | 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, wait
Methods declared in interface javafx.beans.Observable
addListener, removeListener
Methods declared in interface javafx.beans.value.ObservableValue
addListener, getValue, removeListener
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.
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.