public interface Var<T> extends Val<T>, javafx.beans.property.Property<T>
| Modifier and Type | Method and Description |
|---|---|
default void |
bindBidirectional(javafx.beans.property.Property<T> other) |
static Var<java.lang.Double> |
doubleVar(javafx.beans.property.DoubleProperty p)
Converts DoubleProperty to
Var<Double> to help deal
with the consequences of DoubleProperty not being a subtype
of Property<Double>. |
static Var<java.lang.Float> |
floatVar(javafx.beans.property.FloatProperty p)
Converts FloatProperty to
Var<Float> to help deal
with the consequences of FloatProperty not being a subtype
of Property<Float>. |
static <T> Var<T> |
fromVal(javafx.beans.value.ObservableValue<T> obs,
java.util.function.Consumer<T> setValue)
Creates a Var from ObservableValue, using the
given
setValue function in place of the WritableValue.setValue(Object)
method. |
default java.lang.Object |
getBean() |
default java.lang.String |
getName() |
static Var<java.lang.Integer> |
integerVar(javafx.beans.property.IntegerProperty p)
Converts IntegerProperty to
Var<Integer> to help
deal with the consequences of IntegerProperty not being a
subtype of Property<Integer>. |
static Var<java.lang.Long> |
longVar(javafx.beans.property.LongProperty p)
Converts LongProperty to
Var<Long> to help deal
with the consequences of LongProperty not being a subtype
of Property<Long>. |
default <U> Var<U> |
mapBidirectional(java.util.function.Function<? super T,? extends U> f,
java.util.function.Function<? super U,? extends T> g) |
static <T,U> Var<U> |
mapBidirectional(javafx.beans.property.Property<T> src,
java.util.function.Function<? super T,? extends U> f,
java.util.function.Function<? super U,? extends T> g) |
static <T> Var<T> |
newSimpleVar(T initialValue) |
default SuspendableVar<T> |
suspendable() |
static <T> SuspendableVar<T> |
suspendable(javafx.beans.property.Property<T> p) |
default void |
unbindBidirectional(javafx.beans.property.Property<T> other) |
addInvalidationObserver, addListener, addListener, animate, animate, animate, animate, animate, animate, asList, asVar, changes, combine, combine, combine, combine, combine, conditionOn, conditionOn, conditionOnShowing, conditionOnShowing, constant, create, create, filter, filter, flatMap, flatMap, getOpt, getOrElse, getOrSupply, getOrThrow, ifPresent, invalidations, isEmpty, isPresent, map, map, mapDynamic, mapDynamic, observeChanges, observeChanges, observeInvalidations, observeInvalidations, orElse, orElse, orElseConst, orElseConst, pin, removeInvalidationObserver, removeListener, removeListener, selectVar, selectVar, selectVar, selectVar, showingProperty, suspendable, values, wrapaddObserver, observe, removeObserverstatic <T> Var<T> newSimpleVar(T initialValue)
static <T> Var<T> fromVal(javafx.beans.value.ObservableValue<T> obs, java.util.function.Consumer<T> setValue)
setValue function in place of the WritableValue.setValue(Object)
method.obs - ObservableValue whose value can be changed by
the setValue function.setValue - function used to set the value of obs. When
invoked with a value x, it should perform an action that may
or may not result in a change of obs's value to x.static Var<java.lang.Double> doubleVar(javafx.beans.property.DoubleProperty p)
Var<Double> to help deal
with the consequences of DoubleProperty not being a subtype
of Property<Double>.static Var<java.lang.Float> floatVar(javafx.beans.property.FloatProperty p)
Var<Float> to help deal
with the consequences of FloatProperty not being a subtype
of Property<Float>.static Var<java.lang.Integer> integerVar(javafx.beans.property.IntegerProperty p)
Var<Integer> to help
deal with the consequences of IntegerProperty not being a
subtype of Property<Integer>.static Var<java.lang.Long> longVar(javafx.beans.property.LongProperty p)
Var<Long> to help deal
with the consequences of LongProperty not being a subtype
of Property<Long>.static <T,U> Var<U> mapBidirectional(javafx.beans.property.Property<T> src, java.util.function.Function<? super T,? extends U> f, java.util.function.Function<? super U,? extends T> g)
static <T> SuspendableVar<T> suspendable(javafx.beans.property.Property<T> p)
default void bindBidirectional(javafx.beans.property.Property<T> other)
bindBidirectional in interface javafx.beans.property.Property<T>default void unbindBidirectional(javafx.beans.property.Property<T> other)
unbindBidirectional in interface javafx.beans.property.Property<T>default java.lang.Object getBean()
getBean in interface javafx.beans.property.ReadOnlyProperty<T>default java.lang.String getName()
getName in interface javafx.beans.property.ReadOnlyProperty<T>default SuspendableVar<T> suspendable()
suspendable in interface Val<T>