public enum SwingObservable extends java.lang.Enum<SwingObservable>
| Modifier and Type | Method and Description |
|---|---|
static void |
assertEventDispatchThread()
Check if the current thead is the event dispatch thread.
|
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.Point> |
fromRelativeMouseMotion(java.awt.Component component)
Creates an observable corresponding to relative mouse motion.
|
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.
|
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 namejava.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.Point> fromRelativeMouseMotion(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.public static void assertEventDispatchThread()
java.lang.IllegalStateException - if the current thread is not the event dispatch thread.