I am using a ObservableMap
for data modeling, and want to update the whole entry. Initially the ObservableMap
is empty, and it is filled asynchronously with lots of elements.
Now the problem is that an onChanged
event is shot for each and every entry, which creates too many events and a bogging down of the GUI. I used pkgs.clear() ; pkgs ++= newpkgs
.
Is there way to either only trigger one onChanged
, either by disabling the handler temporarily, or by having an operation on the map that updates all elements but fires only afterwards.