Package org.reactfx.value
Class SimpleVar<T>
java.lang.Object
org.reactfx.ObservableBase<Consumer<? super T>,T>
org.reactfx.value.ValBase<T>
org.reactfx.value.SimpleVar<T>
- All Implemented Interfaces:
javafx.beans.Observable,javafx.beans.property.Property<T>,javafx.beans.property.ReadOnlyProperty<T>,javafx.beans.value.ObservableValue<T>,javafx.beans.value.WritableValue<T>,Observable<Consumer<? super T>>,ProperObservable<Consumer<? super T>,,T> ProperVal<T>,Val<T>,Var<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected Tprotected Subscriptionconnect()Implementation of this method should start observing inputs.booleanisBound()voidvoidunbind()Methods inherited from class org.reactfx.value.ValBase
getValue, invalidate, newObserver, observeInputsMethods inherited from class org.reactfx.ObservableBase
addObserver, enqueueNotifications, equals, forEachObserver, getObserverCount, hashCode, isObservingInputs, notifyObservers, notifyObservers, observe, removeObserver, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.reactfx.Observable
addObserver, observe, removeObserverMethods inherited from interface javafx.beans.value.ObservableValue
getValueMethods inherited from interface org.reactfx.ProperObservable
defaultEquals, defaultHashCode, defaultToString, notifyObserversMethods inherited from interface org.reactfx.value.ProperVal
defaultNotificationAccumulatorMethods 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 org.reactfx.value.Var
bindBidirectional, getBean, getName, mapBidirectional, suspendable, unbindBidirectionalMethods inherited from interface javafx.beans.value.WritableValue
getValue
-
Field Details
-
boundToListener
private final javafx.beans.InvalidationListener boundToListener -
value
-
boundTo
-
-
Constructor Details
-
SimpleVar
-
-
Method Details
-
bind
- Specified by:
bindin interfacejavafx.beans.property.Property<T>
-
unbind
public void unbind()- Specified by:
unbindin interfacejavafx.beans.property.Property<T>
-
isBound
public boolean isBound()- Specified by:
isBoundin interfacejavafx.beans.property.Property<T>
-
setValue
- Specified by:
setValuein interfacejavafx.beans.value.WritableValue<T>
-
connect
Description copied from class:ValBaseImplementation of this method should start observing inputs. If the value of this Val may change as a result of input change, the corresponding input observer should callValBase.invalidate()to notify observers of this Val. By the time of calling ValBase.invalidate(), the input observer must have already updated any internal state of this Val, so that a subsequent call toValBase.computeValue()returns the current value of this Val. -
computeValue
- Specified by:
computeValuein classValBase<T>
-