Package org.reactfx.value
Interface Var<T>
- All Superinterfaces:
javafx.beans.Observable
,Observable<Consumer<? super T>>
,javafx.beans.value.ObservableValue<T>
,javafx.beans.property.Property<T>
,javafx.beans.property.ReadOnlyProperty<T>
,Val<T>
,javafx.beans.value.WritableValue<T>
- All Known Subinterfaces:
SuspendableVar<T>
- All Known Implementing Classes:
FlatMappedVar
,SimpleVar
,SuspendableVarWrapper
,VarFromVal
,VarWrapper
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
bindBidirectional
(javafx.beans.property.Property<T> other) doubleVar
(javafx.beans.property.DoubleProperty p) Converts DoubleProperty toVar<Double>
to help deal with the consequences of DoubleProperty not being a subtype ofProperty<Double>
.floatVar
(javafx.beans.property.FloatProperty p) Converts FloatProperty toVar<Float>
to help deal with the consequences of FloatProperty not being a subtype ofProperty<Float>
.static <T> Var
<T> Creates a Var from ObservableValue, using the givensetValue
function in place of theWritableValue.setValue(Object)
method.default Object
getBean()
default String
getName()
integerVar
(javafx.beans.property.IntegerProperty p) Converts IntegerProperty toVar<Integer>
to help deal with the consequences of IntegerProperty not being a subtype ofProperty<Integer>
.longVar
(javafx.beans.property.LongProperty p) Converts LongProperty toVar<Long>
to help deal with the consequences of LongProperty not being a subtype ofProperty<Long>
.default <U> Var
<U> mapBidirectional
(Function<? super T, ? extends U> f, Function<? super U, ? extends T> g) static <T,
U> Var <U> mapBidirectional
(javafx.beans.property.Property<T> src, Function<? super T, ? extends U> f, Function<? super U, ? extends T> g) static <T> Var
<T> newSimpleVar
(T initialValue) default SuspendableVar
<T> static <T> SuspendableVar
<T> suspendable
(javafx.beans.property.Property<T> p) default void
unbindBidirectional
(javafx.beans.property.Property<T> other) Methods inherited from interface org.reactfx.Observable
addObserver, observe, removeObserver
Methods inherited from interface javafx.beans.value.ObservableValue
getValue
Methods inherited from interface javafx.beans.property.Property
bind, isBound, unbind
Methods inherited from interface org.reactfx.value.Val
addInvalidationObserver, addListener, addListener, animate, animate, asList, asVar, changes, conditionOn, conditionOnShowing, filter, flatMap, getOpt, getOrElse, getOrSupply, getOrThrow, ifPresent, invalidations, isEmpty, isPresent, map, mapDynamic, observeChanges, observeInvalidations, orElse, orElseConst, pin, removeInvalidationObserver, removeListener, removeListener, selectVar, selectVar, values
Methods inherited from interface javafx.beans.value.WritableValue
getValue, setValue
-
Method Details
-
newSimpleVar
-
fromVal
Creates a Var from ObservableValue, using the givensetValue
function in place of theWritableValue.setValue(Object)
method.- Parameters:
obs
- ObservableValue whose value can be changed by thesetValue
function.setValue
- function used to set the value ofobs
. When invoked with a valuex
, it should perform an action that may or may not result in a change ofobs
's value tox
.
-
doubleVar
Converts DoubleProperty toVar<Double>
to help deal with the consequences of DoubleProperty not being a subtype ofProperty<Double>
. -
floatVar
Converts FloatProperty toVar<Float>
to help deal with the consequences of FloatProperty not being a subtype ofProperty<Float>
. -
integerVar
Converts IntegerProperty toVar<Integer>
to help deal with the consequences of IntegerProperty not being a subtype ofProperty<Integer>
. -
longVar
Converts LongProperty toVar<Long>
to help deal with the consequences of LongProperty not being a subtype ofProperty<Long>
. -
mapBidirectional
-
suspendable
-
bindBidirectional
- Specified by:
bindBidirectional
in interfacejavafx.beans.property.Property<T>
-
unbindBidirectional
- Specified by:
unbindBidirectional
in interfacejavafx.beans.property.Property<T>
-
getBean
- Specified by:
getBean
in interfacejavafx.beans.property.ReadOnlyProperty<T>
-
getName
- Specified by:
getName
in interfacejavafx.beans.property.ReadOnlyProperty<T>
-
suspendable
- Specified by:
suspendable
in interfaceVal<T>
-
mapBidirectional
-