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 2222
2323public enum JavaFxSubscriber {
2424 ;//no instances
25-
25+ /**
26+ * Turns an Observable into a JavaFX Binding. Calling the dispose() method will handle the unsubscription.
27+ */
2628 public static <T > Binding <T > toBinding (Observable <T > obs ) {
2729 BindingSubscriber <T > bindingSubscriber = new BindingSubscriber <>(e -> {});
2830 obs .subscribe (bindingSubscriber );
2931 return bindingSubscriber ;
3032 }
33+ /**
34+ * Turns an Observable into a JavaFX Binding. Calling the dispose() method will handle the unsubscription.
35+ */
3136 public static <T > Binding <T > toBinding (Observable <T > obs , Action1 <Throwable > onErrorAction ) {
3237 BindingSubscriber <T > bindingSubscriber = new BindingSubscriber <>(onErrorAction );
3338 obs .subscribe (bindingSubscriber );
You can’t perform that action at this time.
0 commit comments