replace a section of ObservableList in one operation?

Tomas Mikula tomas.mikula at gmail.com
Mon Sep 2 05:22:46 PDT 2013


Hi,

I cannot find a way to replace a section of ObservableList in one
operation. I'm looking for something like

ObservableList<E>#setAll(int from, int to, Collection<? extends E> col)

or

list.subList(from, to).setAll(col).

In the latter case, ObservableList#subList() would have to return an
instance of ObservableList, not just List.

I know I can use a pair of remove() and addAll(), but my objective is
to generate just 1 change event.
Is there a way to achieve this?

Thank you,
Tomas


More information about the openjfx-dev mailing list