Module MaterialFX

Class TransformableListWrapper<T>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
io.github.palexdev.materialfx.collections.TransformableListWrapper<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>, Observable, ObservableList<T>

public class TransformableListWrapper<T> extends AbstractList<T> implements ObservableList<T>
For some idiot reason JavaFX's TransformationLists do not allow modifying the source list.

This class fixes that. It wraps an ObservableList which is the source list and the new TransformableList which is built from that source.

This way you can benefit of the futures of the new TransformableList (sorting and filtering) while also being able to directly modify the source list.