java.lang.Object
javafx.beans.binding.ObjectExpression<T>
javafx.beans.binding.ObjectBinding<T>
com.tobiasdiez.easybind.PreboundBinding<T>
- All Implemented Interfaces:
javafx.beans.binding.Binding<T>,javafx.beans.Observable,javafx.beans.value.ObservableObjectValue<T>,javafx.beans.value.ObservableValue<T>
- Direct Known Subclasses:
EasyPreboundBinding,PreboundOptionalBinding
public abstract class PreboundBinding<T>
extends javafx.beans.binding.ObjectBinding<T>
Object binding that binds to its dependencies on creation
and unbinds from them on dispose. If one of the registered dependencies becomes invalid, this
binding is marked as invalid.
To provide a concrete implementation of this class, the method
ObjectBinding.computeValue()
has to be implemented to calculate the value of this binding based on the current state of the dependencies.
This method is called when ObjectBinding.get() is invoked for an invalid binding.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javafx.beans.binding.ObjectBinding
addListener, addListener, allowValidation, bind, computeValue, get, getDependencies, invalidate, isObserved, isValid, onInvalidating, removeListener, removeListener, toString, unbindMethods inherited from class javafx.beans.binding.ObjectExpression
asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javafx.beans.value.ObservableValue
flatMap, getValue, map, orElse, when
-
Field Details
-
dependencies
protected final javafx.beans.Observable[] dependencies
-
-
Constructor Details
-
PreboundBinding
public PreboundBinding(javafx.beans.Observable... dependencies)
-
-
Method Details