Class ListRangeReduction<T>

    • Field Detail

      • range

        private final javafx.beans.value.ObservableValue<javafx.scene.control.IndexRange> range
    • Constructor Detail

      • ListRangeReduction

        ListRangeReduction​(javafx.collections.ObservableList<T> input,
                           javafx.beans.value.ObservableValue<javafx.scene.control.IndexRange> range,
                           java.util.function.BinaryOperator<T> reduction)
    • Method Detail

      • connect

        protected Subscription connect()
        Description copied from class: ValBase
        Implementation 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 call ValBase.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 to ValBase.computeValue() returns the current value of this Val.
        Overrides:
        connect in class ListReduction<T>
        Returns:
        Subscription that can be used to stop observing inputs.