|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<SwingObservable>
rx.observables.SwingObservable
public enum SwingObservable
Allows creating observables from various sources specific to Swing.
| Method Summary | |
|---|---|
static rx.Observable<java.awt.event.ActionEvent> |
fromButtonAction(javax.swing.AbstractButton button)
Creates an observable corresponding to a Swing button action. |
static rx.Observable<java.awt.event.ComponentEvent> |
fromComponentEvents(java.awt.Component component)
Creates an observable corresponding to raw component events. |
static rx.Observable<java.awt.event.KeyEvent> |
fromKeyEvents(java.awt.Component component)
Creates an observable corresponding to raw key events. |
static rx.Observable<java.awt.event.KeyEvent> |
fromKeyEvents(java.awt.Component component,
java.util.Set<java.lang.Integer> keyCodes)
Creates an observable corresponding to raw key events, restricted a set of given key codes. |
static rx.Observable<java.awt.event.MouseEvent> |
fromMouseEvents(java.awt.Component component)
Creates an observable corresponding to raw mouse events (excluding mouse motion events). |
static rx.Observable<java.awt.event.MouseEvent> |
fromMouseMotionEvents(java.awt.Component component)
Creates an observable corresponding to raw mouse motion events. |
static rx.Observable<java.util.Set<java.lang.Integer>> |
fromPressedKeys(java.awt.Component component)
Creates an observable that emits the set of all currently pressed keys each time this set changes. |
static rx.Observable<java.awt.Dimension> |
fromResizing(java.awt.Component component)
Creates an observable corresponding to component resize events. |
static SwingObservable |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SwingObservable[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static SwingObservable[] values()
for (SwingObservable c : SwingObservable.values()) System.out.println(c);
public static SwingObservable 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 name
java.lang.NullPointerException - if the argument is nullpublic static rx.Observable<java.awt.event.ActionEvent> fromButtonAction(javax.swing.AbstractButton button)
button - The button to register the observable for.
public static rx.Observable<java.awt.event.KeyEvent> fromKeyEvents(java.awt.Component component)
component - The component to register the observable for.
public static rx.Observable<java.awt.event.KeyEvent> fromKeyEvents(java.awt.Component component,
java.util.Set<java.lang.Integer> keyCodes)
component - The component to register the observable for.
public static rx.Observable<java.util.Set<java.lang.Integer>> fromPressedKeys(java.awt.Component component)
component - The component to register the observable for.
public static rx.Observable<java.awt.event.MouseEvent> fromMouseEvents(java.awt.Component component)
component - The component to register the observable for.
public static rx.Observable<java.awt.event.MouseEvent> fromMouseMotionEvents(java.awt.Component component)
component - The component to register the observable for.
public static rx.Observable<java.awt.event.ComponentEvent> fromComponentEvents(java.awt.Component component)
component - The component to register the observable for.
public static rx.Observable<java.awt.Dimension> fromResizing(java.awt.Component component)
component - The component to register the observable for.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||