replace a section of ObservableList in one operation?
tom.schindl at bestsolution.at
Mon Sep 2 05:33:21 PDT 2013
I don't think there's API for this so the only idea is to copy the list
to an ArrayList, do the replace there and afterwards call
On 02.09.13 14:22, Tomas Mikula wrote:
> 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)
> 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,
More information about the openjfx-dev