RFR: 8305925: Add concatenated list view
Kevin Rushforth
kcr at openjdk.org
Wed Apr 12 18:48:21 UTC 2023
On Wed, 12 Apr 2023 07:24:08 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
> The JavaFX collections framework offers the `FXCollections.concat(ObservableList...)` method, which creates a new modifiable list that contains a concatenated snapshot of the source lists, backed by an `ArrayList`. However, when the source lists are changed, the concatenated list is not updated.
>
> This PR adds `FXCollections.concatenatedObservableList(ObservableList...)`, which creates an _unmodifiable collection view_ onto the source lists that represents the concatenation of all source elements. When any of the source lists are changed, the change is also reflected in the concatenated view.
Moving to Draft since we haven't finished the discussion of whether we want this feature at this time, and what form it should take.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1087#issuecomment-1505760283
More information about the openjfx-dev
mailing list