Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Binding on selectionModelProperty in ListView

drenda81Jul 1 2014 — edited Jul 2 2014

Hi, I can't figure out how using binding on selectionModelProperty in a ListView that is using MULTIPLE selection model. I want bind my bean in which I've a list of item A and the selection of that items into the List.

ListView<A> listView;

listView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);

My bean return a ReadOnlyListProperty<A>

So I don't know how do:

listView.selectionModelProperty().bindBidirectional(bean.getItems());

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 30 2014
Added on Jul 1 2014
6 comments
2,591 views