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 voidbindBidirectional(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 givensetValuefunction in place of theWritableValue.setValue(Object)method.default ObjectgetBean()default StringgetName()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 voidunbindBidirectional(javafx.beans.property.Property<T> other) Methods inherited from interface org.reactfx.Observable
addObserver, observe, removeObserverMethods inherited from interface javafx.beans.value.ObservableValue
getValueMethods inherited from interface javafx.beans.property.Property
bind, isBound, unbindMethods 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, valuesMethods inherited from interface javafx.beans.value.WritableValue
getValue, setValue
-
Method Details
-
newSimpleVar
-
fromVal
Creates a Var from ObservableValue, using the givensetValuefunction in place of theWritableValue.setValue(Object)method.- Parameters:
obs- ObservableValue whose value can be changed by thesetValuefunction.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:
bindBidirectionalin interfacejavafx.beans.property.Property<T>
-
unbindBidirectional
- Specified by:
unbindBidirectionalin interfacejavafx.beans.property.Property<T>
-
getBean
- Specified by:
getBeanin interfacejavafx.beans.property.ReadOnlyProperty<T>
-
getName
- Specified by:
getNamein interfacejavafx.beans.property.ReadOnlyProperty<T>
-
suspendable
- Specified by:
suspendablein interfaceVal<T>
-
mapBidirectional
-