We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87b53fa commit d8a3a8fCopy full SHA for d8a3a8f
extensions/rxjava-swing/src/main/java/rx/SwingObservable.java
@@ -21,8 +21,18 @@
21
22
import rx.swing.sources.AbstractButtonSource;
23
24
+/**
25
+ * Allows creating observables from various sources specific to Swing.
26
+ */
27
public enum SwingObservable { ; // no instances
28
29
+ /**
30
+ * Creates an observable corresponding to a Swing button action.
31
+ *
32
+ * @param button
33
+ * The button to register the observable for.
34
+ * @return Observable of action events.
35
36
public static Observable<ActionEvent> fromButtonAction(AbstractButton button) {
37
return AbstractButtonSource.fromActionOf(button);
38
}
0 commit comments