Binding inside it. When wrapped, any Listener listening for updates to the wrapped Binding (for example because of a binding to it) is ensured to be notified on the JavaFX Application Thread. It should be used to implement bindings where updates come in from a background thread but should be reflected in the UI where it is necessary that changes to the UI are performed on the JavaFX Application thread.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addListener(InvalidationListener listener)
Implements javafx. Adds an |
| public void | addListener(ChangeListener<? super T> listener)
Implements javafx. Adds a |
| public void | dispose()
Implements javafx. Signals to the |
| public ObservableList | getDependencies()
Implements javafx. Returns the dependencies of a binding in an unmodifiable
|
| public T | getValue()
Implements javafx. Returns the current value of this |
| public void | |
| public boolean | |
| public void | removeListener(InvalidationListener 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> listener)
Implements javafx. Removes the given listener from the list of listeners that are notified
whenever the value of the |
| delegate | back to summary |
|---|---|
| private final Binding<T> delegate | |
| UiThreadBinding | back to summary |
|---|---|
| public UiThreadBinding(Binding<T> delegate) | |
| 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
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements javafx. Doc from javafx. Signals to the
All bindings in our implementation use instances of
| |
| getDependencies | back to summary |
|---|---|
| public ObservableList Implements javafx. Doc from javafx. Returns the dependencies of a binding in an unmodifiable
Because this method should not be used in production code, it is
recommended to implement this functionality as sparse as possible. For
example if the dependencies do not change, each call can generate a new
| |
| getValue | back to summary |
|---|---|
| public T getValue() Implements javafx. Doc from javafx. Returns the current value of this
| |
| invalidate | back to summary |
|---|---|
| public void invalidate() Implements javafx. Doc from javafx. Mark a binding as invalid. This forces the recalculation of the value of
the
| |
| isValid | back to summary |
|---|---|
| public boolean isValid() Implements javafx. Doc from javafx. Checks if a binding is valid.
| |
| 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.
| |