Class StrobeList<T>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
javafx.collections.ObservableListBase<T>
com.iamsoft.util.ui.javafx.collections.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 Details

    • StrobeList

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

    • get

      public T get(int pIdx)
      Specified by:
      get in interface List<T>
      Specified by:
      get in class AbstractList<T>
    • size

      public int size()
      Specified by:
      size in interface Collection<T>
      Specified by:
      size in interface List<T>
      Specified by:
      size in class AbstractCollection<T>
    • 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().