public final class Bindings extends Object
| Modifier and Type | Method and Description |
|---|---|
static <TValue,TConvertedValue> |
bindBidirectional(@NotNull javafx.beans.property.Property<TValue> property1,
@NotNull javafx.beans.property.Property<TConvertedValue> property2,
@NotNull IConverter<TValue,TConvertedValue> converter)
Binds the given property1 bidirectional against the property2, the values will be converted using the given
IConverter. |
static <TValue,TConvertedValue> |
convert(@NotNull javafx.beans.value.ObservableValue<TValue> observableValue,
@NotNull Function<TValue,TConvertedValue> converter)
Creates
|
static <TValue> IFluentBinding<TValue> |
observe(@NotNull javafx.beans.value.ObservableValue<TValue> observedValue)
Creates a new
RootBinding that listens to changes made to the given ObservableValue and then invokes its own binding mechanism. |
static <TValue,TConvertedValue> |
unbindBidirectional(@NotNull javafx.beans.property.Property<TValue> property1,
@NotNull javafx.beans.property.Property<TConvertedValue> property2)
Unbinds the given property1 bidirectional from property2.
|
public static <TValue> IFluentBinding<TValue> observe(@NotNull @NotNull javafx.beans.value.ObservableValue<TValue> observedValue)
RootBinding that listens to changes made to the given ObservableValue and then invokes its own binding mechanism.TValue - the type of the value of the ObservableValueobservedValue - the ObservableValue to listen to.RootBinding.public static <TValue,TConvertedValue> IFluentBinding<TConvertedValue> convert(@NotNull @NotNull javafx.beans.value.ObservableValue<TValue> observableValue, @NotNull @NotNull Function<TValue,TConvertedValue> converter)
TValue - TConvertedValue - observableValue - converter - public static <TValue,TConvertedValue> BidirectionalBinding<Object> bindBidirectional(@NotNull @NotNull javafx.beans.property.Property<TValue> property1, @NotNull @NotNull javafx.beans.property.Property<TConvertedValue> property2, @NotNull @NotNull IConverter<TValue,TConvertedValue> converter)
IConverter.TValue - the type of the first Property.TConvertedValue - the type of the second Property.property1 - the first Property to be bind.property2 - the second Property to be bind.converter - the IConverter to use.public static <TValue,TConvertedValue> void unbindBidirectional(@NotNull
@NotNull javafx.beans.property.Property<TValue> property1,
@NotNull
@NotNull javafx.beans.property.Property<TConvertedValue> property2)
NOTE: this method is incompatible with the BidirectionalBinding, so calling this unbind will not destroy any
BidirectionalBinding but only the BidirectionalBinding.
TValue - the type of the first Property.TConvertedValue - the type of the second Property.property1 - the first Property to be unbound.property2 - the second Property to be unbound.Copyright © 2016 Saxonia Systems AG. All rights reserved.