public enum JavaFxObservable extends java.lang.Enum<JavaFxObservable>
| Modifier and Type | Method and Description |
|---|---|
static io.reactivex.Observable<javafx.event.ActionEvent> |
actionEventsOf(javafx.scene.control.ContextMenu contextMenu)
Creates an observable corresponding to javafx ContextMenu action events.
|
static io.reactivex.Observable<javafx.event.ActionEvent> |
actionEventsOf(javafx.scene.control.MenuItem menuItem)
Creates an observable corresponding to javafx MenuItem action events.
|
static io.reactivex.Observable<javafx.event.ActionEvent> |
actionEventsOf(javafx.scene.Node node)
Creates an observable corresponding to javafx Node action events.
|
static <T> io.reactivex.Observable<T> |
additionsOf(javafx.collections.ObservableList<T> source)
Creates an observable that emits all additions to an ObservableList
|
static <K,T> io.reactivex.Observable<java.util.Map.Entry<K,T>> |
additionsOf(javafx.collections.ObservableMap<K,T> source)
Creates an observable that emits all additions to an ObservableMap
|
static <T> io.reactivex.Observable<T> |
additionsOf(javafx.collections.ObservableSet<T> source)
Creates an observable that emits all additions to an ObservableSet
|
static <T> io.reactivex.Observable<ListChange<T>> |
changesOf(javafx.collections.ObservableList<T> source)
Emits all added, removed, and updated items from an ObservableList
|
static <K,T> io.reactivex.Observable<MapChange<K,T>> |
changesOf(javafx.collections.ObservableMap<K,T> source)
Emits all added and removed items (including swaps) from an ObservableMap
|
static <T> io.reactivex.Observable<SetChange<T>> |
changesOf(javafx.collections.ObservableSet<T> source)
Emits all added and removed items (including swaps) from an ObservableSet
|
static <T> io.reactivex.Observable<Change<T>> |
changesOf(javafx.beans.value.ObservableValue<T> fxObservable)
Create an rx Observable from a javafx ObservableValue, and emits changes with old and new value pairs
|
static <T> io.reactivex.Observable<ListChange<T>> |
distinctChangesOf(javafx.collections.ObservableList<T> source)
Emits distinctly added and removed items from an ObservableList.
|
static <T,R> io.reactivex.Observable<ListChange<T>> |
distinctChangesOf(javafx.collections.ObservableList<T> source,
java.util.function.Function<T,R> mapper)
Emits distinctly added and removed T items from an ObservableList based on a mapping to an R value.
|
static <T,R> io.reactivex.Observable<ListChange<R>> |
distinctMappingsOf(javafx.collections.ObservableList<T> source,
java.util.function.Function<T,R> mapper)
Emits distinctly added and removed mappings to each R item from an ObservableList.
|
static <T> io.reactivex.Observable<javafx.collections.ObservableList<T>> |
emitOnChanged(javafx.collections.ObservableList<T> source)
Creates an observable that emits an ObservableList every time it is modified
|
static <K,T> io.reactivex.Observable<javafx.collections.ObservableMap<K,T>> |
emitOnChanged(javafx.collections.ObservableMap<K,T> source)
Creates an observable that emits an ObservableMap every time it is modified
|
static <T> io.reactivex.Observable<javafx.collections.ObservableSet<T>> |
emitOnChanged(javafx.collections.ObservableSet<T> source)
Creates an observable that emits an ObservableSet every time it is modified
|
static <T extends javafx.event.Event> |
eventsOf(javafx.scene.Node node,
javafx.event.EventType<T> eventType)
Creates an observable corresponding to JavaFX Node events.
|
static <T extends javafx.event.Event> |
eventsOf(javafx.scene.Scene scene,
javafx.event.EventType<T> eventType)
Creates an observable corresponding to javafx Scene events.
|
static <T extends javafx.stage.WindowEvent> |
eventsOf(javafx.stage.Window window,
javafx.event.EventType<T> eventType)
Creates an observable corresponding to javafx Window events.
|
static <T> io.reactivex.Maybe<T> |
fromDialog(javafx.scene.control.Dialog<T> dialog)
Returns a Maybe that emits the T response of a Dialog.
|
static io.reactivex.Observable<java.lang.Long> |
interval(javafx.util.Duration duration)
Returns an Observable that emits a 0L and ever increasing numbers after each duration of time thereafter
|
static io.reactivex.Observable<javafx.beans.Observable> |
invalidationsOf(javafx.beans.Observable fxObservable)
Emits a JavaFX Observable every time it is invalidated.
|
static <T> io.reactivex.Observable<Change<T>> |
nonNullChangesOf(javafx.beans.value.ObservableValue<T> fxObservable)
Create an rx Observable from a javafx ObservableValue, and emits changes with non-null old and new value pairs
|
static <T> io.reactivex.Observable<java.util.Optional<T>> |
nullableValuesOf(javafx.beans.value.ObservableValue<T> fxObservable)
Create an rx Observable from a JavaFX ObservableValue
|
static <T> io.reactivex.Observable<T> |
removalsOf(javafx.collections.ObservableList<T> source)
Creates an observable that emits all removal items from an ObservableList
|
static <K,T> io.reactivex.Observable<java.util.Map.Entry<K,T>> |
removalsOf(javafx.collections.ObservableMap<K,T> source)
Creates an observable that emits all removal items from an ObservableMap
|
static <T> io.reactivex.Observable<T> |
removalsOf(javafx.collections.ObservableSet<T> source)
Creates an observable that emits all removal items from an ObservableSet
|
static <T> io.reactivex.Observable<T> |
updatesOf(javafx.collections.ObservableList<T> source)
Creates an observable that emits all updated items from an ObservableList.
|
static JavaFxObservable |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JavaFxObservable[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static <T> io.reactivex.Observable<T> |
valuesOf(javafx.beans.value.ObservableValue<T> fxObservable)
Create an rx Observable from a JavaFX ObservableValue
|
static <T> io.reactivex.Observable<T> |
valuesOf(javafx.beans.value.ObservableValue<T> fxObservable,
T nullSentinel)
Create an rx Observable from a JavaFX ObservableValue
|
public static JavaFxObservable[] values()
for (JavaFxObservable c : JavaFxObservable.values()) System.out.println(c);
public static JavaFxObservable valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static <T extends javafx.event.Event> io.reactivex.Observable<T> eventsOf(javafx.scene.Node node,
javafx.event.EventType<T> eventType)
node - The target of the UI events.eventType - The type of the observed UI eventspublic static <T> io.reactivex.Observable<T> valuesOf(javafx.beans.value.ObservableValue<T> fxObservable)
T - the type of the observed valuefxObservable - the observed ObservableValuepublic static <T> io.reactivex.Observable<T> valuesOf(javafx.beans.value.ObservableValue<T> fxObservable,
T nullSentinel)
T - the type of the observed valuefxObservable - the observed ObservableValuenullSentinel - the default sentinel value emitted when the observable is nullpublic static <T> io.reactivex.Observable<java.util.Optional<T>> nullableValuesOf(javafx.beans.value.ObservableValue<T> fxObservable)
T - the type of the observed valuefxObservable - the observed ObservableValuepublic static <T> io.reactivex.Observable<Change<T>> changesOf(javafx.beans.value.ObservableValue<T> fxObservable)
T - the type of the observed valuefxObservable - the observed ObservableValuepublic static <T> io.reactivex.Observable<Change<T>> nonNullChangesOf(javafx.beans.value.ObservableValue<T> fxObservable)
T - the type of the observed valuefxObservable - the observed ObservableValuepublic static io.reactivex.Observable<javafx.beans.Observable> invalidationsOf(javafx.beans.Observable fxObservable)
fxObservable - public static <T extends javafx.event.Event> io.reactivex.Observable<T> eventsOf(javafx.scene.Scene scene,
javafx.event.EventType<T> eventType)
scene - The target of the UI events.eventType - The type of the observed UI eventspublic static <T extends javafx.stage.WindowEvent> io.reactivex.Observable<T> eventsOf(javafx.stage.Window window,
javafx.event.EventType<T> eventType)
window - The target of the UI events.eventType - The type of the observed UI eventspublic static io.reactivex.Observable<javafx.event.ActionEvent> actionEventsOf(javafx.scene.Node node)
node - The target of the ActionEventspublic static io.reactivex.Observable<javafx.event.ActionEvent> actionEventsOf(javafx.scene.control.ContextMenu contextMenu)
contextMenu - The target of the ActionEventspublic static io.reactivex.Observable<javafx.event.ActionEvent> actionEventsOf(javafx.scene.control.MenuItem menuItem)
menuItem - The target of the ActionEventspublic static <T> io.reactivex.Observable<javafx.collections.ObservableList<T>> emitOnChanged(javafx.collections.ObservableList<T> source)
source - The target ObservableList of the ListChange eventspublic static <T> io.reactivex.Observable<T> additionsOf(javafx.collections.ObservableList<T> source)
source - The target ObservableList for the item add eventspublic static <T> io.reactivex.Observable<T> removalsOf(javafx.collections.ObservableList<T> source)
source - The target ObservableList for the item removal eventspublic static <T> io.reactivex.Observable<T> updatesOf(javafx.collections.ObservableList<T> source)
ObservableListsourceList = FXCollections.observableArrayList(user -> new javafx.beans.Observable[]{user.age} );
source - The target ObservableList for the item update eventspublic static <T> io.reactivex.Observable<ListChange<T>> changesOf(javafx.collections.ObservableList<T> source)
source - public static <T> io.reactivex.Observable<ListChange<T>> distinctChangesOf(javafx.collections.ObservableList<T> source)
source - public static <T,R> io.reactivex.Observable<ListChange<T>> distinctChangesOf(javafx.collections.ObservableList<T> source, java.util.function.Function<T,R> mapper)
source - public static <T,R> io.reactivex.Observable<ListChange<R>> distinctMappingsOf(javafx.collections.ObservableList<T> source, java.util.function.Function<T,R> mapper)
source - public static <K,T> io.reactivex.Observable<javafx.collections.ObservableMap<K,T>> emitOnChanged(javafx.collections.ObservableMap<K,T> source)
source - The target ObservableMap of the MapChange eventspublic static <K,T> io.reactivex.Observable<java.util.Map.Entry<K,T>> additionsOf(javafx.collections.ObservableMap<K,T> source)
source - The target ObservableMap for the item add eventspublic static <K,T> io.reactivex.Observable<java.util.Map.Entry<K,T>> removalsOf(javafx.collections.ObservableMap<K,T> source)
source - The target ObservableMap for the item removal eventspublic static <K,T> io.reactivex.Observable<MapChange<K,T>> changesOf(javafx.collections.ObservableMap<K,T> source)
source - public static <T> io.reactivex.Observable<javafx.collections.ObservableSet<T>> emitOnChanged(javafx.collections.ObservableSet<T> source)
source - The target ObservableSet of the SetChange eventspublic static <T> io.reactivex.Observable<T> additionsOf(javafx.collections.ObservableSet<T> source)
source - The target ObservableSet for the item add eventspublic static <T> io.reactivex.Observable<T> removalsOf(javafx.collections.ObservableSet<T> source)
source - The target ObservableSet for the item removal eventspublic static <T> io.reactivex.Observable<SetChange<T>> changesOf(javafx.collections.ObservableSet<T> source)
source - public static io.reactivex.Observable<java.lang.Long> interval(javafx.util.Duration duration)
public static <T> io.reactivex.Maybe<T> fromDialog(javafx.scene.control.Dialog<T> dialog)