java - Modifying FXCollections.synchronizedObservableList out of the UI Thread -
Text after "
I have compiled a ListView
one SynchronizedObservableList
. Can I modify the list outside the UI thread ( add
, delete
, etc.}? There will be no exception but the UI will be synchronized correctly? < / P>
No: If the indexed list is being used in ListView (or where appropriate ListView is bound to it) Are for data), so it should be modified only on foreign exchange application threads.
While the same Using synchronization list provides some synchronization guarantees that list data, since you are bound to ListView
, synchronizedObservableList
modified The properties of the change in ListView (for example, would be the reason, it would be the cause of the change in its cells). There is no synchronization guarantee on the properties of
ListView
and any changes in those properties will be done by Fx Required to be on application thread Is.
Comments
Post a Comment