Class FlatMappedVar<T,​U,​O extends javafx.beans.property.Property<U>>

  • 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 Detail

      • srcListenerWhenBound

        private final javafx.beans.value.ChangeListener<O extends javafx.beans.property.Property<U>> srcListenerWhenBound
      • boundTo

        private javafx.beans.value.ObservableValue<? extends U> boundTo
    • Constructor Detail

      • FlatMappedVar

        public FlatMappedVar​(javafx.beans.value.ObservableValue<T> src,
                             java.util.function.Function<? super T,​O> f,
                             U resetToOnUnbind)
      • FlatMappedVar

        public FlatMappedVar​(javafx.beans.value.ObservableValue<T> src,
                             java.util.function.Function<? super T,​O> f)
      • FlatMappedVar

        private FlatMappedVar​(javafx.beans.value.ObservableValue<T> src,
                              java.util.function.Function<? super T,​O> f,
                              java.util.function.Consumer<O> onUnbind)
    • Method Detail

      • setValue

        public void setValue​(U value)
        Specified by:
        setValue in interface javafx.beans.value.WritableValue<T>
      • bind

        public void bind​(javafx.beans.value.ObservableValue<? extends U> other)
        Specified by:
        bind in interface javafx.beans.property.Property<T>
      • unbind

        public void unbind()
        Specified by:
        unbind in interface javafx.beans.property.Property<T>
      • isBound

        public boolean isBound()
        Specified by:
        isBound in interface javafx.beans.property.Property<T>