java.lang.Object
io.github.palexdev.materialfx.bindings.BindingBuilder<T>
Helper class for the
BindingManager.
Makes the creation of unidirectional bindings easier with fluent methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Confirms the creation of the binding by callingBindingManager.apply(BindingBuilder, BindingHelper).ObservableValue<? extends T>source()ObservableValue<? extends T>target()BiConsumer<T,T> to(ObservableValue<? extends T> source) Sets the binding's source.with(BiConsumer<T, T> updater) Sets theBiConsumerfunction responsible for updating the target when the source changes.
-
Constructor Details
-
BindingBuilder
-
-
Method Details
-
to
Sets the binding's source. -
with
Sets theBiConsumerfunction responsible for updating the target when the source changes. -
target
- Returns:
- the target observable
-
source
- Returns:
- the source observable
-
targetUpdater
- Returns:
- the target updater
-
create
Confirms the creation of the binding by callingBindingManager.apply(BindingBuilder, BindingHelper).
-