E - the type parameter of this listF - the upper bound of the type of the source listpublic abstract class TransformationList<E,F> extends ObservableListBase<E> implements ObservableList<E>
#onSourceChanged(javafx.collections.ListChangeListener.Change)modCount| Modifier | Constructor and Description |
|---|---|
protected |
TransformationList(ObservableList<? extends F> source)
Creates a new Transformation list wrapped around the source list.
|
| Modifier and Type | Method and Description |
|---|---|
ObservableList<? extends F> |
getSource()
The source list specified in the constructor of this transformation list.
|
abstract int |
getSourceIndex(int index)
Maps the index of this list's element to an index in the direct source list.
|
int |
getSourceIndexFor(ObservableList<?> list,
int index)
Maps the index of this list's element to an index of the provided
list. |
boolean |
isInTransformationChain(ObservableList<?> list)
Checks whether the provided list is in the chain under this
TransformationList. |
protected abstract void |
sourceChanged(ListChangeListener.Change<? extends F> c)
Called when a change from the source is triggered.
|
addAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAll, setAlladd, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, addListener, filtered, remove, removeAll, removeListener, retainAll, setAll, setAll, sorted, sortedadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamaddListener, removeListenerprotected TransformationList(ObservableList<? extends F> source)
source - the wrapped listpublic final ObservableList<? extends F> getSource()
public final boolean isInTransformationChain(ObservableList<?> list)
TransformationList.
This means the list is either the direct source as returned by
getSource() or the direct source is a TransformationList,
and the list is in it's transformation chain.list - the list to checkprotected abstract void sourceChanged(ListChangeListener.Change<? extends F> c)
c - the changepublic abstract int getSourceIndex(int index)
index - the index in this listgetSource()public final int getSourceIndexFor(ObservableList<?> list, int index)
list.
The list must be in the transformation chain.list - a list from the transformation chainindex - the index of an element in this listisInTransformationChain(javafx.collections.ObservableList)Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.