-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 8
-
Component/s: javafx
-
master
Add a new method to ObservableList to be able to replace a range of elements with different elements. This is highly useful when forwarding events received by a ListChangeListener to another observable list that must be kept in sync (but perhaps has its items subtly transformed). Without this method, permutations are most efficiently implemented with add/remove, but this changes the list's size temporarily (which may trigger things like selection/cursor updates). Doing in place replacements (with `set`) is also not a good option as a single large permutation event must then be forwarded as many single item set events.
Originally a request for additional setAll method with range:
ObservableList<E>#setAll(int from, int to, Collection<? extends E> col)
Originally a request for additional setAll method with range:
ObservableList<E>#setAll(int from, int to, Collection<? extends E> col)
- csr for
-
JDK-8371355 ObservableList<E>#replaceRange(int from, int to, Collection<? extends E> col)
-
- Closed
-
- links to
-
Commit(master)
openjdk/jfx/b76090df
-
Review(master)
openjdk/jfx/1937