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, setAll
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, 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, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
addListener, removeListener
protected 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)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.