Reputation: 1272
I have a ObservableList<SomeDataClass> dataEntries
and a ObservableList<StringProperty> dataNames
.
I would like to create a binding that ensures that dataNames
contains element.nameProperty()
for each element
in dataNames
.
Is there something like the following code snippet in the FX libraries?
ObservableList<SomeDataClass> dataEntries = ...;
ObservableList<StringProperty> dataNames = ...;
dataNames.bind(dataEntries.memberList(SomeDataClass::nameProperty));
Upvotes: 2
Views: 404