javafx.beans.value.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.
This class keeps track of the latest value it has seen to determine if change
listeners should be called when next fireValueChangedEvent() is called.
So while this value is usually the current value of the involved observable,
it becomes the "old" value as soon as the observable is changed, until such time
it is updated again (by calling fireValueChangedEvent()).
During this brief period, listeners may be added or removed causing the ExpressionHelper
to perhaps switch to a different variant of itself. These different variants must be
made aware of the currently stored latest value, as obtaining this value from the
ObservableValue would (during that brief period) be a different value. Using
the incorrect latest value would result in change listeners not being fired as they
perform an equality check.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| protected final ObservableValue |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> ExpressionHelper | addListener(ExpressionHelper<T> helper, ObservableValue<T> observable, InvalidationListener listener)
|
| public static <T> ExpressionHelper | addListener(ExpressionHelper<T> helper, ObservableValue<T> observable, ChangeListener<? super T> listener)
|
| protected abstract ExpressionHelper | |
| protected abstract ExpressionHelper | |
| public static <T> void | |
| protected abstract void | |
| public static <T> ExpressionHelper | |
| public static <T> ExpressionHelper | |
| protected abstract ExpressionHelper | |
| protected abstract ExpressionHelper |
| observable | back to summary |
|---|---|
| protected final ObservableValue<T> observable | |
| ExpressionHelper | back to summary |
|---|---|
| private ExpressionHelper(ObservableValue<T> observable) | |
| addListener | back to summary |
|---|---|
| public static <T> ExpressionHelper | |
| addListener | back to summary |
|---|---|
| public static <T> ExpressionHelper | |
| addListener | back to summary |
|---|---|
| protected abstract ExpressionHelper | |
| addListener | back to summary |
|---|---|
| protected abstract ExpressionHelper | |
| fireValueChangedEvent | back to summary |
|---|---|
| public static <T> void fireValueChangedEvent(ExpressionHelper<T> helper) | |
| fireValueChangedEvent | back to summary |
|---|---|
| protected abstract void fireValueChangedEvent() | |
| removeListener | back to summary |
|---|---|
| public static <T> ExpressionHelper | |
| removeListener | back to summary |
|---|---|
| public static <T> ExpressionHelper | |
| removeListener | back to summary |
|---|---|
| protected abstract ExpressionHelper | |
| removeListener | back to summary |
|---|---|
| protected abstract ExpressionHelper | |
| Modifier and Type | Field and Description |
|---|---|
| private ChangeListener | |
| private int | |
| private T | |
| private InvalidationListener[] | |
| private int | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| private | Generic(ObservableValue<T> observable, InvalidationListener listener0, InvalidationListener listener1)
|
| private | Generic(ObservableValue<T> observable, T currentValue, ChangeListener<? super T> listener0, ChangeListener<? super T> listener1)
|
| private | Generic(ObservableValue<T> observable, T currentValue, InvalidationListener invalidationListener, ChangeListener<? super T> changeListener)
|
| Modifier and Type | Method and Description |
|---|---|
| protected ExpressionHelper. | addListener(InvalidationListener listener)
Implements abstract com.
|
| protected ExpressionHelper | addListener(ChangeListener<? super T> listener)
Implements abstract com.
|
| protected void | fireValueChangedEvent()
Implements abstract com.
|
| protected ExpressionHelper | removeListener(InvalidationListener listener)
Implements abstract com.
|
| protected ExpressionHelper | removeListener(ChangeListener<? super T> listener)
Implements abstract com.
|
| changeListeners | back to summary |
|---|---|
| private ChangeListener<? super T>[] changeListeners | |
| changeSize | back to summary |
|---|---|
| private int changeSize | |
| currentValue | back to summary |
|---|---|
| private T currentValue | |
| invalidationListeners | back to summary |
|---|---|
| private InvalidationListener[] invalidationListeners | |
| invalidationSize | back to summary |
|---|---|
| private int invalidationSize | |
| locked | back to summary |
|---|---|
| private boolean locked | |
| Generic | back to summary |
|---|---|
| private Generic(ObservableValue<T> observable, InvalidationListener listener0, InvalidationListener listener1) | |
| Generic | back to summary |
|---|---|
| private Generic(ObservableValue<T> observable, T currentValue, ChangeListener<? super T> listener0, ChangeListener<? super T> listener1) | |
| Generic | back to summary |
|---|---|
| private Generic(ObservableValue<T> observable, T currentValue, InvalidationListener invalidationListener, ChangeListener<? super T> changeListener) | |
| addListener | back to summary |
|---|---|
| protected ExpressionHelper. Implements abstract com.
| |
| addListener | back to summary |
|---|---|
| protected ExpressionHelper Implements abstract com.
| |
| fireValueChangedEvent | back to summary |
|---|---|
| protected void fireValueChangedEvent() Implements abstract com.
| |
| removeListener | back to summary |
|---|---|
| protected ExpressionHelper Implements abstract com.
| |
| removeListener | back to summary |
|---|---|
| protected ExpressionHelper Implements abstract com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private T | |
| private final ChangeListener |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected ExpressionHelper | addListener(InvalidationListener listener)
Implements abstract com.
|
| protected ExpressionHelper | addListener(ChangeListener<? super T> listener)
Implements abstract com.
|
| protected void | fireValueChangedEvent()
Implements abstract com.
|
| protected ExpressionHelper | removeListener(InvalidationListener listener)
Implements abstract com.
|
| protected ExpressionHelper | removeListener(ChangeListener<? super T> listener)
Implements abstract com.
|
| currentValue | back to summary |
|---|---|
| private T currentValue | |
| listener | back to summary |
|---|---|
| private final ChangeListener<? super T> listener | |
| SingleChange | back to summary |
|---|---|
| private SingleChange(ObservableValue<T> observable, T currentValue, ChangeListener<? super T> listener) | |
| addListener | back to summary |
|---|---|
| protected ExpressionHelper Implements abstract com.
| |
| addListener | back to summary |
|---|---|
| protected ExpressionHelper Implements abstract com.
| |
| fireValueChangedEvent | back to summary |
|---|---|
| protected void fireValueChangedEvent() Implements abstract com.
| |
| removeListener | back to summary |
|---|---|
| protected ExpressionHelper Implements abstract com.
| |
| removeListener | back to summary |
|---|---|
| protected ExpressionHelper Implements abstract com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final InvalidationListener |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected ExpressionHelper | addListener(InvalidationListener listener)
Implements abstract com.
|
| protected ExpressionHelper | addListener(ChangeListener<? super T> listener)
Implements abstract com.
|
| protected void | fireValueChangedEvent()
Implements abstract com.
|
| protected ExpressionHelper | removeListener(InvalidationListener listener)
Implements abstract com.
|
| protected ExpressionHelper | removeListener(ChangeListener<? super T> listener)
Implements abstract com.
|
| listener | back to summary |
|---|---|
| private final InvalidationListener listener | |
| SingleInvalidation | back to summary |
|---|---|
| private SingleInvalidation(ObservableValue<T> expression, InvalidationListener listener) | |
| addListener | back to summary |
|---|---|
| protected ExpressionHelper Implements abstract com.
| |
| addListener | back to summary |
|---|---|
| protected ExpressionHelper Implements abstract com.
| |
| fireValueChangedEvent | back to summary |
|---|---|
| protected void fireValueChangedEvent() Implements abstract com.
| |
| removeListener | back to summary |
|---|---|
| protected ExpressionHelper Implements abstract com.
| |
| removeListener | back to summary |
|---|---|
| protected ExpressionHelper Implements abstract com.
| |