- 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.
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description StrobeList(javafx.beans.value.ObservableValue<? extends T> pVal, Function<? super T,? extends K> pKeyFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doBeginChange()
Call ObservableListBase.beginChange().void
doEndChange()
Call ObservableListBase.endChange().T
get(int pIdx)
int
size()
protected void
update(int pIdx, T pVal)
By default, replaces item and calls ObservableListBase.nextSet(int, Object).-
Methods inherited from class javafx.collections.ObservableListBase
addAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAll, setAll
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
-
-
-
-
Method Detail
-
get
public T get(int pIdx)
-
size
public int size()
- Specified by:
size
in interfaceCollection<T>
- Specified by:
size
in interfaceList<T>
- Specified by:
size
in classAbstractCollection<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().
-
-