File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/java/rx/subscribers Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 22
22
23
23
public enum JavaFxSubscriber {
24
24
;//no instances
25
-
25
+ /**
26
+ * Turns an Observable into a JavaFX Binding. Calling the dispose() method will handle the unsubscription.
27
+ */
26
28
public static <T > Binding <T > toBinding (Observable <T > obs ) {
27
29
BindingSubscriber <T > bindingSubscriber = new BindingSubscriber <>(e -> {});
28
30
obs .subscribe (bindingSubscriber );
29
31
return bindingSubscriber ;
30
32
}
33
+ /**
34
+ * Turns an Observable into a JavaFX Binding. Calling the dispose() method will handle the unsubscription.
35
+ */
31
36
public static <T > Binding <T > toBinding (Observable <T > obs , Action1 <Throwable > onErrorAction ) {
32
37
BindingSubscriber <T > bindingSubscriber = new BindingSubscriber <>(onErrorAction );
33
38
obs .subscribe (bindingSubscriber );
You can’t perform that action at this time.
0 commit comments