public class FlattenedList<A>
class FlattenedList flattens the passed in list of ObservableValues so that changes in individual updates to the values
are reflected in the exposed list as expected.
class FlattenedList| Modifier and Type | Class and Description |
|---|---|
static class |
FlattenedList.WrappedObservableValue<A>
We maintain an ObservableValue->index map. This is needed because we need the ObservableValue's index in order to
propagate a change and if the listener closure captures the index at the time of the call to
ObservableValue.addListener it will become incorrect if the indices shift around later.
|
| Constructor and Description |
|---|
FlattenedList(javafx.collections.ObservableList<? extends javafx.beans.value.ObservableValue<? extends A>> sourceList)
class FlattenedList flattens the passed in list of ObservableValues so that changes in individual updates to the values
are reflected in the exposed list as expected. |
| Modifier and Type | Method and Description |
|---|---|
A |
get(int index) |
java.util.HashMap<net.corda.client.fxutils.FlattenedList.WrappedObservableValue,kotlin.Pair> |
getIndexMap() |
int |
getSize() |
int |
getSourceIndex(int index) |
javafx.collections.ObservableList<? extends javafx.beans.value.ObservableValue<? extends A>> |
getSourceList() |
java.lang.Object |
remove(int p) |
java.lang.Object |
removeAt(int p) |
int |
size() |
void |
sourceChanged(javafx.collections.ListChangeListener.Change<? extends javafx.beans.value.ObservableValue<? extends A>> c) |
public FlattenedList(javafx.collections.ObservableList<? extends javafx.beans.value.ObservableValue<? extends A>> sourceList)
class FlattenedList flattens the passed in list of ObservableValues so that changes in individual updates to the values
are reflected in the exposed list as expected.
class FlattenedListpublic java.util.HashMap<net.corda.client.fxutils.FlattenedList.WrappedObservableValue,kotlin.Pair> getIndexMap()
public void sourceChanged(javafx.collections.ListChangeListener.Change<? extends javafx.beans.value.ObservableValue<? extends A>> c)
public A get(int index)
public int getSourceIndex(int index)
public int getSize()
public int size()
public javafx.collections.ObservableList<? extends javafx.beans.value.ObservableValue<? extends A>> getSourceList()
public java.lang.Object removeAt(int p)
public java.lang.Object remove(int p)