public enum JavaFxObservable extends java.lang.Enum<JavaFxObservable>
Modifier and Type | Method and Description |
---|---|
static rx.Observable<javafx.event.ActionEvent> |
fromActionEvents(javafx.scene.control.ContextMenu contextMenu)
Creates an observable corresponding to javafx ContextMenu action events.
|
static rx.Observable<javafx.event.ActionEvent> |
fromActionEvents(javafx.scene.control.MenuItem menuItem)
Creates an observable corresponding to javafx MenuItem action events.
|
static rx.Observable<javafx.event.ActionEvent> |
fromActionEvents(javafx.scene.Node node)
Creates an observable corresponding to javafx Node action events.
|
static <T extends javafx.event.Event> |
fromNodeEvents(javafx.scene.Node node,
javafx.event.EventType<T> eventType)
Creates an observable corresponding to javafx Node events.
|
static <T> rx.Observable<javafx.collections.ObservableList<T>> |
fromObservableList(javafx.collections.ObservableList<T> source)
Creates an observable that emits an ObservableList every time it is modified
|
static <T> rx.Observable<T> |
fromObservableListAdds(javafx.collections.ObservableList<T> source)
Creates an observable that emits all additions to an ObservableList
|
static <T> rx.Observable<ListChange<T>> |
fromObservableListChanges(javafx.collections.ObservableList<T> source)
Emits all added, removed, and updated items from an ObservableList
|
static <T> rx.Observable<ListChange<T>> |
fromObservableListDistinctChanges(javafx.collections.ObservableList<T> source)
Emits distinctly added and removed items from an ObservableList.
|
static <T,R> rx.Observable<ListChange<T>> |
fromObservableListDistinctChanges(javafx.collections.ObservableList<T> source,
rx.functions.Func1<T,R> mapper)
Emits distinctly added and removed T items from an ObservableList based on a mapping to an R value.
|
static <T,R> rx.Observable<ListChange<R>> |
fromObservableListDistinctMappings(javafx.collections.ObservableList<T> source,
rx.functions.Func1<T,R> mapper)
Emits distinctly added and removed mappings to each R item from an ObservableList.
|
static <T> rx.Observable<T> |
fromObservableListRemovals(javafx.collections.ObservableList<T> source)
Creates an observable that emits all removal items from an ObservableList
|
static <T> rx.Observable<T> |
fromObservableListUpdates(javafx.collections.ObservableList<T> source)
Creates an observable that emits all updated items from an ObservableList.
|
static <T> rx.Observable<T> |
fromObservableValue(javafx.beans.value.ObservableValue<T> fxObservable)
Create an rx Observable from a javafx ObservableValue
|
static <T> rx.Observable<Change<T>> |
fromObservableValueChanges(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 extends javafx.event.Event> |
fromSceneEvents(javafx.scene.Scene scene,
javafx.event.EventType<T> eventType)
Creates an observable corresponding to javafx Scene events.
|
static <T extends javafx.stage.WindowEvent> |
fromWindowEvents(javafx.stage.Window window,
javafx.event.EventType<T> eventType)
Creates an observable corresponding to javafx Window events.
|
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.
|
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> rx.Observable<T> fromNodeEvents(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> rx.Observable<T> fromObservableValue(javafx.beans.value.ObservableValue<T> fxObservable)
T
- the type of the observed valuefxObservable
- the observed ObservableValuepublic static <T> rx.Observable<Change<T>> fromObservableValueChanges(javafx.beans.value.ObservableValue<T> fxObservable)
T
- the type of the observed valuefxObservable
- the observed ObservableValuepublic static <T extends javafx.event.Event> rx.Observable<T> fromSceneEvents(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> rx.Observable<T> fromWindowEvents(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 rx.Observable<javafx.event.ActionEvent> fromActionEvents(javafx.scene.Node node)
node
- The target of the ActionEventspublic static rx.Observable<javafx.event.ActionEvent> fromActionEvents(javafx.scene.control.ContextMenu contextMenu)
contextMenu
- The target of the ActionEventspublic static rx.Observable<javafx.event.ActionEvent> fromActionEvents(javafx.scene.control.MenuItem menuItem)
menuItem
- The target of the ActionEventspublic static <T> rx.Observable<javafx.collections.ObservableList<T>> fromObservableList(javafx.collections.ObservableList<T> source)
source
- The target ObservableList of the ListChange eventspublic static <T> rx.Observable<T> fromObservableListAdds(javafx.collections.ObservableList<T> source)
source
- The target ObservableList for the item add eventspublic static <T> rx.Observable<T> fromObservableListRemovals(javafx.collections.ObservableList<T> source)
source
- The target ObservableList for the item removal eventspublic static <T> rx.Observable<T> fromObservableListUpdates(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> rx.Observable<ListChange<T>> fromObservableListChanges(javafx.collections.ObservableList<T> source)
source
- public static <T> rx.Observable<ListChange<T>> fromObservableListDistinctChanges(javafx.collections.ObservableList<T> source)
source
- public static <T,R> rx.Observable<ListChange<T>> fromObservableListDistinctChanges(javafx.collections.ObservableList<T> source, rx.functions.Func1<T,R> mapper)
source
- public static <T,R> rx.Observable<ListChange<R>> fromObservableListDistinctMappings(javafx.collections.ObservableList<T> source, rx.functions.Func1<T,R> mapper)
source
-