| Modifier and Type | Field and Description |
|---|---|
| private Subscription | |
| private final Consumer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected Consumer | adaptObserver(Consumer<? super T> observer)
Implements abstract org. Adapts the given observer to observer of the underlying Observable. |
| public void | bind(ObservableValue<? extends T> observable)
Implements javafx. Create a unidirection binding for this |
| public T | getValue()
Implements javafx. Returns the current value of this |
| public boolean | isBound()
Implements javafx. Can be used to check, if a |
| public void | |
| public void | unbind()
Implements javafx. Remove the unidirectional binding for this |
| binding | back to summary |
|---|---|
| private Subscription binding | |
| setter | back to summary |
|---|---|
| private final Consumer<T> setter | |
| VarFromVal | back to summary |
|---|---|
| pack-priv VarFromVal(Val<T> underlying, Consumer<T> setter) | |
| adaptObserver | back to summary |
|---|---|
| protected Consumer Implements abstract org. Doc from org. Adapts the given observer to observer of the underlying Observable. Important Note It is required that the transformation applied to two observers that are _equal_ yields two adapted observers that are _equal_. In other words, if `o1.equals(o2)`, then it must be the case that `adaptObserver(o1).equals(adaptObserver(o2))`.
| |
| bind | back to summary |
|---|---|
| public void bind(ObservableValue<? extends T> observable) Implements javafx. Doc from javafx. Create a unidirection binding for this Note that JavaFX has all the bind calls implemented through weak listeners. This means the bound property can be garbage collected and stopped from being updated.
| |
| getValue | back to summary |
|---|---|
| public T getValue() Implements javafx. Doc from javafx. Returns the current value of this
| |
| isBound | back to summary |
|---|---|
| public boolean isBound() Implements javafx. Doc from javafx. Can be used to check, if a
| |
| setValue | back to summary |
|---|---|
| public void setValue(T value) Implements javafx. Doc from javafx. Set the wrapped value.
| |
| unbind | back to summary |
|---|---|
| public void unbind() Implements javafx. Doc from javafx. Remove the unidirectional binding for this
| |