153k views
1 vote
Though you can individually add items to a ListView, you can also bind a(n) ________ object to the ListView. If you make changes to this object, its observer will automatically be notified of those changes.

A. ObservableList
B. ListObserver
C. ListViewObserver
D. None of the above

User Jaber
by
4.7k points

2 Answers

4 votes

Answer:

A. ObservableList

Step-by-step explanation:

ObservableList is a type of list that enables users to track changes when they occur. When ObservableList are bind to the ListView, it notifies the observer automatically to any changes made. It is a type of interface found in the javaFx collections. When applying ObservableList, a standard list is first created which then wrapped with an ObservableList. Then when changes are made, the ListChangeListener is automatically notified.

User SadSido
by
5.2k points
2 votes

Answer:

A. ObservableList

Step-by-step explanation:

Though you can individually add items to a ListView, you can also bind a ObservableList object to the ListView. If you make changes to this object, its observer will automatically be notified of those changes.

User Darrell Duane
by
5.2k points