public class ListenerHandles extends Object
ListenerHandles.| Modifier and Type | Method and Description |
|---|---|
static <T extends javafx.collections.ObservableArray<T>> |
createAttached(javafx.collections.ObservableArray<T> observableArray,
javafx.collections.ArrayChangeListener<T> changeListener)
Adds the specified listener to the specified observable array and returns a handle for the combination.
|
static ListenerHandle |
createAttached(javafx.beans.Observable observable,
javafx.beans.InvalidationListener invalidationListener)
Adds the specified listener to the specified observable and returns a handle for the combination.
|
static <E> ListenerHandle |
createAttached(javafx.collections.ObservableList<E> observableList,
javafx.collections.ListChangeListener<? super E> changeListener)
Adds the specified listener to the specified observable list and returns a handle for the combination.
|
static <K,V> ListenerHandle |
createAttached(javafx.collections.ObservableMap<K,V> observableMap,
javafx.collections.MapChangeListener<? super K,? super V> changeListener)
Adds the specified listener to the specified observable map and returns a handle for the combination.
|
static <E> ListenerHandle |
createAttached(javafx.collections.ObservableSet<E> observableSet,
javafx.collections.SetChangeListener<? super E> changeListener)
Adds the specified listener to the specified observable set and returns a handle for the combination.
|
static <T> ListenerHandle |
createAttached(javafx.beans.value.ObservableValue<T> observableValue,
javafx.beans.value.ChangeListener<? super T> changeListener)
Adds the specified listener to the specified observable value and returns a handle for the combination.
|
static <T extends javafx.collections.ObservableArray<T>> |
createDetached(javafx.collections.ObservableArray<T> observableArray,
javafx.collections.ArrayChangeListener<T> changeListener)
Creates a listener handle for the specified observable array and listener.
|
static ListenerHandle |
createDetached(javafx.beans.Observable observable,
javafx.beans.InvalidationListener invalidationListener)
Creates a listener handle for the specified observable and listener.
|
static <E> ListenerHandle |
createDetached(javafx.collections.ObservableList<E> observableList,
javafx.collections.ListChangeListener<? super E> changeListener)
Creates a listener handle for the specified observable list and listener.
|
static <K,V> ListenerHandle |
createDetached(javafx.collections.ObservableMap<K,V> observableMap,
javafx.collections.MapChangeListener<? super K,? super V> changeListener)
Creates a listener handle for the specified observable map and listener.
|
static <E> ListenerHandle |
createDetached(javafx.collections.ObservableSet<E> observableSet,
javafx.collections.SetChangeListener<? super E> changeListener)
Creates a listener handle for the specified observable set and listener.
|
static <T> ListenerHandle |
createDetached(javafx.beans.value.ObservableValue<T> observableValue,
javafx.beans.value.ChangeListener<? super T> changeListener)
Creates a listener handle for the specified observable value and listener.
|
static <O,L> ListenerHandleBuilder<O,L> |
createFor(O observable,
L listener)
Creates a
builder for a generic ListenerHandle. |
public static <O,L> ListenerHandleBuilder<O,L> createFor(O observable, L listener)
builder for a generic ListenerHandle.O - the type of the observable instance (e.g ObservableValue or
ObservableMap) to which the listener will be addedL - the type of the listener which will be added to the observableobservable - the observable instance to which the listener will be addedlistener - the listener which will be added to the observableListenerHandleBuilder for a ListenerHandle.ListenerHandleBuilderpublic static ListenerHandle createAttached(javafx.beans.Observable observable, javafx.beans.InvalidationListener invalidationListener)
observable - the Observable to which the invalidationListener will be addedinvalidationListener - the InvalidationListener which will be added to the observableListenerHandle for the specified arguments; the listener is initially attachedpublic static ListenerHandle createDetached(javafx.beans.Observable observable, javafx.beans.InvalidationListener invalidationListener)
observable - the Observable to which the invalidationListener will be addedinvalidationListener - the InvalidationListener which will be added to the observableValueListenerHandle for the specified arguments; the listener is initially detachedpublic static <T> ListenerHandle createAttached(javafx.beans.value.ObservableValue<T> observableValue, javafx.beans.value.ChangeListener<? super T> changeListener)
T - the type of the value wrapped by the observableobservableValue - the ObservableValue to which the changeListener will be addedchangeListener - the ChangeListener which will be added to the observableValueListenerHandle for the specified arguments; the listener is initially attachedpublic static <T> ListenerHandle createDetached(javafx.beans.value.ObservableValue<T> observableValue, javafx.beans.value.ChangeListener<? super T> changeListener)
T - the type of the value wrapped by the observableobservableValue - the ObservableValue to which the changeListener will be addedchangeListener - the ChangeListener which will be added to the observableValueListenerHandle for the specified arguments; the listener is initially detachedpublic static <T extends javafx.collections.ObservableArray<T>> ListenerHandle createAttached(javafx.collections.ObservableArray<T> observableArray, javafx.collections.ArrayChangeListener<T> changeListener)
T - the type of the array wrapped by the observableobservableArray - the ObservableArray to which the changeListener will be addedchangeListener - the ArrayChangeListener which will be added to the observableArrayListenerHandle for the specified arguments; the listener is initially attachedpublic static <T extends javafx.collections.ObservableArray<T>> ListenerHandle createDetached(javafx.collections.ObservableArray<T> observableArray, javafx.collections.ArrayChangeListener<T> changeListener)
T - the type of the array wrapped by the observableobservableArray - the ObservableArray to which the changeListener will be addedchangeListener - the ArrayChangeListener which will be added to the observableArrayListenerHandle for the specified arguments; the listener is initially detachedpublic static <E> ListenerHandle createAttached(javafx.collections.ObservableList<E> observableList, javafx.collections.ListChangeListener<? super E> changeListener)
E - the list element typeobservableList - the ObservableList to which the changeListener will be addedchangeListener - the ListChangeListener which will be added to the observableListListenerHandle for the specified arguments; the listener is initially attachedpublic static <E> ListenerHandle createDetached(javafx.collections.ObservableList<E> observableList, javafx.collections.ListChangeListener<? super E> changeListener)
E - the list element typeobservableList - the ObservableList to which the changeListener will be addedchangeListener - the ListChangeListener which will be added to the observableListListenerHandle for the specified arguments; the listener is initially detachedpublic static <E> ListenerHandle createAttached(javafx.collections.ObservableSet<E> observableSet, javafx.collections.SetChangeListener<? super E> changeListener)
E - the set element typeobservableSet - the ObservableSet to which the changeListener will be addedchangeListener - the SetChangeListener which will be added to the observableSetListenerHandle for the specified arguments; the listener is initially attachedpublic static <E> ListenerHandle createDetached(javafx.collections.ObservableSet<E> observableSet, javafx.collections.SetChangeListener<? super E> changeListener)
E - the set element typeobservableSet - the ObservableSet to which the changeListener will be addedchangeListener - the SetChangeListener which will be added to the observableSetListenerHandle for the specified arguments; the listener is initially detachedpublic static <K,V> ListenerHandle createAttached(javafx.collections.ObservableMap<K,V> observableMap, javafx.collections.MapChangeListener<? super K,? super V> changeListener)
K - the map key element typeV - the map value element typeobservableMap - the ObservableMap to which the changeListener will be addedchangeListener - the MapChangeListener which will be added to the observableMapListenerHandle for the specified arguments; the listener is initially attachedpublic static <K,V> ListenerHandle createDetached(javafx.collections.ObservableMap<K,V> observableMap, javafx.collections.MapChangeListener<? super K,? super V> changeListener)
K - the map key element typeV - the map value element typeobservableMap - the ObservableMap to which the changeListener will be addedchangeListener - the MapChangeListener which will be added to the observableMapListenerHandle for the specified arguments; the listener is initially detachedThis documentation is licensed under CC-BY 4.0, attributed to Nicolai Parlog from CodeFX.