APIdia Launch Partner
Top Fields Constructors Methods
com.sun.javafx.binding

public Class MappedBinding<S, T>

extends LazyObjectBinding<T>
Class Inheritance
Imports
java.util.Objects, java.util.function.Function, javafx.beans.value.ObservableValue, javafx.util.Subscription

Field Summary

Modifier and TypeField and Description
private final Function<? super S, ? extends T>
private final ObservableValue<S>

Constructor Summary

AccessConstructor and Description
public
MappedBinding(ObservableValue<S> source, Function<? super S, ? extends T> mapper)

Method Summary

Modifier and TypeMethod and Description
protected T
computeValue()

Implements abstract javafx.beans.binding.ObjectBinding.computeValue.

Calculates the current value of this binding.

protected Subscription
observeSources()

Implements abstract com.sun.javafx.binding.LazyObjectBinding.observeSources.

Called when this binding was previously not observed and a new observer was added.

Inherited from com.sun.javafx.binding.LazyObjectBinding:
addListeneraddListenerallowValidationremoveListenerremoveListener

Field Detail

mapperback to summary
private final Function<? super S, ? extends T> mapper
sourceback to summary
private final ObservableValue<S> source

Constructor Detail

MappedBindingback to summary
public MappedBinding(ObservableValue<S> source, Function<? super S, ? extends T> mapper)

Method Detail

computeValueback to summary
protected T computeValue()

Implements abstract javafx.beans.binding.ObjectBinding.computeValue.

Doc from javafx.beans.binding.ObjectBinding.computeValue.

Calculates the current value of this binding.

Classes extending ObjectBinding have to provide an implementation of computeValue.

Annotations
@Override
observeSourcesback to summary
protected Subscription observeSources()

Implements abstract com.sun.javafx.binding.LazyObjectBinding.observeSources.

Doc from com.sun.javafx.binding.LazyObjectBinding.observeSources.

Called when this binding was previously not observed and a new observer was added. Implementors must return a Subscription which will be cancelled when this binding no longer has any observers.

Annotations
@Override