Package org.reactfx.value
Class FlatMappedVar<T,U,O extends javafx.beans.property.Property<U>>
- java.lang.Object
-
- org.reactfx.ObservableBase<java.util.function.Consumer<? super T>,T>
-
- org.reactfx.value.ValBase<U>
-
- org.reactfx.value.FlatMapped<T,U,O>
-
- org.reactfx.value.FlatMappedVar<T,U,O>
-
- All Implemented Interfaces:
javafx.beans.Observable
,javafx.beans.property.Property<U>
,javafx.beans.property.ReadOnlyProperty<U>
,javafx.beans.value.ObservableValue<U>
,javafx.beans.value.WritableValue<U>
,Observable<java.util.function.Consumer<? super U>>
,ProperObservable<java.util.function.Consumer<? super U>,U>
,ProperVal<U>
,Val<U>
,Var<U>
class FlatMappedVar<T,U,O extends javafx.beans.property.Property<U>> extends FlatMapped<T,U,O> implements Var<U>
-
-
Field Summary
Fields Modifier and Type Field Description private javafx.beans.value.ObservableValue<? extends U>
boundTo
private javafx.beans.value.ChangeListener<O>
srcListenerWhenBound
-
Fields inherited from class org.reactfx.value.FlatMapped
src
-
-
Constructor Summary
Constructors Modifier Constructor Description FlatMappedVar(javafx.beans.value.ObservableValue<T> src, java.util.function.Function<? super T,O> f)
private
FlatMappedVar(javafx.beans.value.ObservableValue<T> src, java.util.function.Function<? super T,O> f, java.util.function.Consumer<O> onUnbind)
FlatMappedVar(javafx.beans.value.ObservableValue<T> src, java.util.function.Function<? super T,O> f, U resetToOnUnbind)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(javafx.beans.value.ObservableValue<? extends U> other)
boolean
isBound()
void
setValue(U value)
void
unbind()
-
Methods inherited from class org.reactfx.value.FlatMapped
computeValue, connect
-
Methods inherited from class org.reactfx.value.ValBase
getValue, invalidate, newObserver, observeInputs
-
Methods inherited from class org.reactfx.ObservableBase
addObserver, enqueueNotifications, equals, forEachObserver, getObserverCount, hashCode, isObservingInputs, notifyObservers, notifyObservers, observe, removeObserver, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.reactfx.Observable
addObserver, observe, removeObserver
-
Methods inherited from interface org.reactfx.ProperObservable
defaultEquals, defaultHashCode, defaultToString, notifyObservers
-
Methods inherited from interface org.reactfx.value.ProperVal
defaultNotificationAccumulator
-
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 org.reactfx.value.Var
bindBidirectional, getBean, getName, mapBidirectional, suspendable, unbindBidirectional
-
-
-
-
Method Detail
-
setValue
public void setValue(U value)
- Specified by:
setValue
in interfacejavafx.beans.value.WritableValue<T>
-
bind
public void bind(javafx.beans.value.ObservableValue<? extends U> other)
- Specified by:
bind
in interfacejavafx.beans.property.Property<T>
-
unbind
public void unbind()
- Specified by:
unbind
in interfacejavafx.beans.property.Property<T>
-
isBound
public boolean isBound()
- Specified by:
isBound
in interfacejavafx.beans.property.Property<T>
-
-