Class StrobeList<T>

  • Type Parameters:
    T - Type of observable.
    All Implemented Interfaces:
    Iterable<T>, Collection<T>, List<T>, javafx.beans.Observable, javafx.collections.ObservableList<T>

    public class StrobeList<T>
    extends javafx.collections.ObservableListBase<T>
    Derives list from ObservableValue where each new state of observed val reflects a snapshot of one element in a list. Snapshots are mapped to list items via 'primary key' function.
    • Constructor Detail

      • StrobeList

        public StrobeList​(javafx.beans.value.ObservableValue<? extends T> pVal,
                          Function<? super T,​? extends K> pKeyFunction)
    • Method Detail

      • update

        protected void update​(int pIdx,
                              T pVal)
        By default, replaces item and calls ObservableListBase.nextSet(int, Object).
      • doBeginChange

        public final void doBeginChange()
        Call ObservableListBase.beginChange().
      • doEndChange

        public final void doEndChange()
        Call ObservableListBase.endChange().