fujaba / fulibFx

A framework for JavaFX applications that is designed for MVC pattern projects.
https://fujaba.github.io/fulibFx/
MIT License
2 stars 0 forks source link

`FxFor` support for `ReusableItemComponent` #118

Closed Clashsoft closed 3 months ago

Clashsoft commented 3 months ago

Is your feature request related to a problem? Please describe. Since FxFor recreates all components when something changes, there is no way to implement transitions like animations. In my particular case, I have a component for each item on a map. When the item updates (by being replaced in the list, it is a record), it is supposed to move across the map. This is not possible right now.

Describe the solution you'd like FxFor should reuse component instances when the component class implements ReusableItemComponent.

Describe alternatives you've considered I am not aware of an alternative, apart from not using FxFor.

Additional context None.