public final class GriffonFXCollections
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <E> ObservableStream<E> |
observableStream(javafx.collections.ObservableList<E> list) |
static <K,V> ObservableStream<V> |
observableStream(javafx.collections.ObservableMap<K,V> map) |
static <E> ObservableStream<E> |
observableStream(javafx.collections.ObservableSet<E> set) |
static <E> javafx.collections.ObservableList<E> |
uiThreadAwareObservableList(javafx.collections.ObservableList<E> source)
Wraps an ObservableList, publishing updates inside the UI thread.
|
static <K,V> javafx.collections.ObservableMap<K,V> |
uiThreadAwareObservableMap(javafx.collections.ObservableMap<K,V> source)
Wraps an ObservableMap, publishing updates inside the UI thread.
|
static <E> javafx.collections.ObservableSet<E> |
uiThreadAwareObservableSet(javafx.collections.ObservableSet<E> source)
Wraps an ObservableSet, publishing updates inside the UI thread.
|
@Nonnull public static <E> javafx.collections.ObservableList<E> uiThreadAwareObservableList(@Nonnull javafx.collections.ObservableList<E> source)
E
- the list's parameter type.source
- the ObservableList to be wrapped@Nonnull public static <E> javafx.collections.ObservableSet<E> uiThreadAwareObservableSet(@Nonnull javafx.collections.ObservableSet<E> source)
E
- the set's parameter type.source
- the ObservableSet to be wrapped@Nonnull public static <K,V> javafx.collections.ObservableMap<K,V> uiThreadAwareObservableMap(@Nonnull javafx.collections.ObservableMap<K,V> source)
K
- the type of keys maintained by the mapV
- the type of mapped valuessource
- the ObservableMap to be wrapped@Nonnull public static <E> ObservableStream<E> observableStream(@Nonnull javafx.collections.ObservableList<E> list)
@Nonnull public static <E> ObservableStream<E> observableStream(@Nonnull javafx.collections.ObservableSet<E> set)
@Nonnull public static <K,V> ObservableStream<V> observableStream(@Nonnull javafx.collections.ObservableMap<K,V> map)