K
- Key type.V
- Value type.public class LazyObservableList<K,V>
extends javafx.collections.transformation.TransformationList<javafx.concurrent.Task<V>,K>
modCount
Constructor and Description |
---|
LazyObservableList(javafx.collections.ObservableList<K> pKeys,
javafx.beans.value.ObservableValue<com.google.common.collect.Range<Integer>> pViewportRange,
Function<com.google.common.collect.Range<Integer>,Map<K,javafx.concurrent.Task<V>>> pFetchFunction,
Consumer<K> pUnsubscribeFunction) |
Modifier and Type | Method and Description |
---|---|
javafx.concurrent.Task<V> |
get(int pIdx) |
int |
getSourceIndex(int pIdx) |
protected void |
runLater(Runnable pRunnable) |
int |
size() |
protected void |
sourceChanged(javafx.collections.ListChangeListener.Change<? extends K> pChg) |
getSource, getSourceIndexFor, isInTransformationChain
addAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAll, setAll
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, addListener, filtered, remove, removeAll, removeListener, retainAll, setAll, setAll, sorted, sorted
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
parallelStream, removeIf, stream
public LazyObservableList(javafx.collections.ObservableList<K> pKeys, javafx.beans.value.ObservableValue<com.google.common.collect.Range<Integer>> pViewportRange, Function<com.google.common.collect.Range<Integer>,Map<K,javafx.concurrent.Task<V>>> pFetchFunction, Consumer<K> pUnsubscribeFunction)
pKeys
- List of unique item identifiers.pViewportRange
- Range (offset to length) within which data should be fetched and
actively monitored. Range is allowed to extend beyond key list size.pFetchFunction
- Function for retrieving actively-monitored remote data. Function
is responsible for starting tasks. Where possible, it is encouraged to request all
data with a single 'parent' request upon which child tasks depend. In this case,
canceling all child tasks should cancel parent.pUnsubscribeFunction
- Function to cease active monitoring of a value.public javafx.concurrent.Task<V> get(int pIdx)
public int size()
size
in interface Collection<javafx.concurrent.Task<V>>
size
in interface List<javafx.concurrent.Task<V>>
size
in class AbstractCollection<javafx.concurrent.Task<V>>
protected void runLater(Runnable pRunnable)
protected void sourceChanged(javafx.collections.ListChangeListener.Change<? extends K> pChg)
Copyright © 2023. All rights reserved.