E
- the type parameter of this listF
- the upper bound of the type of the source listpublic abstract class TransformationList<E,F>
extends <any>
#sourceChanged(javafx.collections.ListChangeListener.Change)
Modifier and Type | Field and Description |
---|---|
private <any> |
source
Contains the source list of this transformation list.
|
private <any> |
sourceListener
This field contains the result of expression "source instanceof
javafx.collections.ObservableList ". |
Modifier | Constructor and Description |
---|---|
protected |
TransformationList(<any> source)
Creates a new Transformation list wrapped around the source list.
|
Modifier and Type | Method and Description |
---|---|
private <any> |
getListener() |
<any> |
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(<any> list,
int index)
Maps the index of this list's element to an index of the provided
list . |
abstract int |
getViewIndex(int index)
Maps the index of the direct source list's element to an index in this list.
|
boolean |
isInTransformationChain(<any> list)
Checks whether the provided list is in the chain under this
TransformationList . |
protected abstract void |
sourceChanged(<any> c)
Called when a change from the source is triggered.
|
private <any> source
private <any> sourceListener
javafx.collections.ObservableList
".
If this is true, it is possible to do transforms online.protected TransformationList(<any> source)
source
- the wrapped listpublic final <any> getSource()
public final boolean isInTransformationChain(<any> 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 checkprivate <any> getListener()
protected abstract void sourceChanged(<any> c)
c
- the changepublic abstract int getSourceIndex(int index)
index
- the index in this listgetSource()
public final int getSourceIndexFor(<any> 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 list#isInTransformationChain(javafx.collections.ObservableList)
public abstract int getViewIndex(int index)
index
- the index in the source listgetSource()
,
getSourceIndex(int)