Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide old elements via ObservableList.LocalChange.Update #10

Closed
SkytAsul opened this issue Mar 1, 2023 · 0 comments
Closed

Provide old elements via ObservableList.LocalChange.Update #10

SkytAsul opened this issue Mar 1, 2023 · 0 comments
Assignees
Labels
a:feature New feature or request in:quitte
Milestone

Comments

@SkytAsul
Copy link
Contributor

SkytAsul commented Mar 1, 2023

When listening to changes from an ObservableList, we get a Change instance.
If this Change is a Change.Update instance, we can use Change.Update#getLocalChanges() to get local changes.
Local changes can be 3 subtypes : Removal, Insertion or Update.
In the case a local change is an Update, how to get the items that were previously at the place the new items got set? Using LocalChange#getElements() returns the items added, not the one that were before.

@TheMrMilchmann TheMrMilchmann self-assigned this Mar 5, 2023
@TheMrMilchmann TheMrMilchmann added the a:feature New feature or request label Mar 5, 2023
@TheMrMilchmann TheMrMilchmann added this to the 0.8.0 milestone Mar 5, 2023
@TheMrMilchmann TheMrMilchmann changed the title How to get old items in LocalChange.Update Provide old elements via ObservableList.LocalChange.Update Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:feature New feature or request in:quitte
Projects
None yet
Development

No branches or pull requests

2 participants