Class WritableValueHelper
java.lang.Object
net.thevpc.common.props.impl.WritableValueHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertygetChildProperty(Property parent, String name) static PropertygetChildProperty(Property parent, Path relativePath) static <T> voidhelperBind(WritableValue<T> first, Property root, Path rootPath, Path relativePath) static <T,T2> void helperBindConvert(ObservableValue<T> me, WritableValue<T2> other, Function<T, T2> map) static <T> voidhelperBindSource(WritableValue<T> me, ObservableValue<T> source) static <T> voidhelperBindTarget(ObservableValue<T> me, SetValueModel<T> other) static <T2> voidhelperRemoveBindListeners(PropertyListeners listeners, SetValueModel<T2> other) static <T,T2> void setAndBindConvert(WritableValue<T> base, WritableValue<T2> other, Function<T, T2> map, Function<T2, T> mapBack)
-
Constructor Details
-
WritableValueHelper
public WritableValueHelper()
-
-
Method Details
-
getChildProperty
-
getChildProperty
-
helperBind
public static <T> void helperBind(WritableValue<T> first, Property root, Path rootPath, Path relativePath) -
helperBindTarget
-
setAndBindConvert
public static <T,T2> void setAndBindConvert(WritableValue<T> base, WritableValue<T2> other, Function<T, T2> map, Function<T2, T> mapBack) -
helperBindSource
-
helperBindConvert
public static <T,T2> void helperBindConvert(ObservableValue<T> me, WritableValue<T2> other, Function<T, T2> map) -
helperRemoveBindListeners
public static <T2> void helperRemoveBindListeners(PropertyListeners listeners, SetValueModel<T2> other)
-