Package org.teamapps.databinding
Class DataBindings
java.lang.Object
org.teamapps.databinding.DataBindings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidbindOneWay(ObservableValue<T> observableValue, MutableValue<T> mutableValue) static <T> voidbindTwoWays(TwoWayBindableValue<T> bindable1, TwoWayBindableValue<T> bindable2) static <T> MutableValue<T> createMutableValue(Consumer<T> consumer) static <T> ObservableValue<T> createObservableValue(Event<T> changeEvent) static <T> ObservableValue<T> createObservableValue(Event<T> changeEvent, Supplier<T> provider) static <T> ObservableValue<T> createObservableValueWithEmptyEvent(Event<?> changeEvent, Supplier<T> provider) static <T> TwoWayBindableValue<T> createTwoWayBindable(Event<T> changeEvent, Consumer<T> consumer) static <T> TwoWayBindableValue<T> createTwoWayBindable(Event<T> changeEvent, Supplier<T> supplier, Consumer<T> consumer)
-
Constructor Details
-
DataBindings
public DataBindings()
-
-
Method Details
-
createObservableValueWithEmptyEvent
public static <T> ObservableValue<T> createObservableValueWithEmptyEvent(Event<?> changeEvent, Supplier<T> provider) -
createObservableValue
public static <T> ObservableValue<T> createObservableValue(Event<T> changeEvent, Supplier<T> provider) -
createObservableValue
-
createMutableValue
-
createTwoWayBindable
public static <T> TwoWayBindableValue<T> createTwoWayBindable(Event<T> changeEvent, Supplier<T> supplier, Consumer<T> consumer) -
createTwoWayBindable
public static <T> TwoWayBindableValue<T> createTwoWayBindable(Event<T> changeEvent, Consumer<T> consumer) -
bindOneWay
-
bindTwoWays
public static <T> void bindTwoWays(TwoWayBindableValue<T> bindable1, TwoWayBindableValue<T> bindable2)
-