java.lang.Object
org.jhotdraw8.fxbase.binding.Via<T>
- Type Parameters:
T- the value type of the property
Builder for bindings that go via multiple properties.
Usage: Bind a text field to person.address.city.
TextField cityField;
Property<Person> personProperty;
Via<Person> via = new Via<>(personProperty);
cityField.textProperty().bindBidirectional(
via.via(Person::addressProperty)
.via(Address::cityProperty)
.get()
);
Creates change listeners that are strongly referenced from the root object.
When the root object is garbage collected, the change listeners unregister themselves.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Via
Creates a new via builder.- Parameters:
weakReferenceToRoot- the root property
-
-
Method Details
-
via
Builds a new via step.- Type Parameters:
U- the type of the property- Parameters:
viaFunction- a function that returns the desired property- Returns:
- a via binding to the property
-
get
Gets the binding that was built.- Returns:
- a binding
-