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.
| Modifier and Type | Field and Description |
|---|---|
| private ExpressionHelper |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addListener(InvalidationListener
The listener to register listener)Implements javafx. Adds an |
| public void | addListener(ChangeListener<? super T>
The listener to register listener)Implements javafx. Adds a |
| protected void | |
| public void | removeListener(InvalidationListener
The listener to remove listener)Implements javafx. Removes the given listener from the list of listeners, that are notified
whenever the value of the |
| public void | removeListener(ChangeListener<? super T>
The listener to remove listener)Implements javafx. Removes the given listener from the list of listeners that are notified
whenever the value of the |
| helper | back to summary |
|---|---|
| private ExpressionHelper<T> helper | |
| ObservableValueBase | back to summary |
|---|---|
| public ObservableValueBase() Creates a default | |
| addListener | back to summary |
|---|---|
| public void addListener(InvalidationListener listener) Implements javafx. Doc from javafx. Adds an
Note that the same actual
The
| |
| addListener | back to summary |
|---|---|
| public void addListener(ChangeListener<? super T> listener) Implements javafx. Doc from javafx. Adds a
Note that the same actual
The
| |
| fireValueChangedEvent | back to summary |
|---|---|
| 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. | |
| removeListener | back to summary |
|---|---|
| public void removeListener(InvalidationListener listener) Implements javafx. Doc from javafx. Removes the given listener from the list of listeners, that are notified
whenever the value of the If the given listener has not been previously registered (i.e. it was never added) then this method call is a no-op. If it had been previously added then it will be removed. If it had been added more than once, then only the first occurrence will be removed.
| |
| removeListener | back to summary |
|---|---|
| public void removeListener(ChangeListener<? super T> listener) Implements javafx. Doc from javafx. Removes the given listener from the list of listeners that are notified
whenever the value of the If the given listener has not been previously registered (i.e. it was never added) then this method call is a no-op. If it had been previously added then it will be removed. If it had been added more than once, then only the first occurrence will be removed.
| |