public class SwtRx extends Object
Constructor and Description |
---|
SwtRx() |
Modifier and Type | Method and Description |
---|---|
static Observable<Event> |
addListener(Widget widget,
Collection<Integer> events)
Subscribes to the given widget and pipes the events to an
Observable <Event >. |
static Observable<Event> |
addListener(Widget widget,
int... events)
Subscribes to the given widget and pipes the events to an
Observable <Event >. |
static Observable<Event> |
addListener(Widget widget,
Stream<Integer> events)
Subscribes to the given widget and pipes the events to an
Observable <Event >. |
static Observable<Point> |
rightClickGlobal(Control ctl)
Returns an
Observable <Point > of the right-click mouse-up on the given control, in global coordinates. |
static Observable<Point> |
rightClickLocal(Control ctl)
Returns an
Observable <Point > of the right-click mouse-up on the given control, in local coordinates. |
static RxBox<String> |
textConfirmed(Text text)
Returns an RxBox
|
static RxBox<String> |
textImmediate(Text text)
Returns an RxBox
|
static RxBox<Boolean> |
toggle(Button btn)
Returns an
RxBox<Boolean> for the toggle state of the given button as an RxBox. |
public static Observable<Event> addListener(Widget widget, int... events)
Observable
<Event
>.public static Observable<Event> addListener(Widget widget, Collection<Integer> events)
Observable
<Event
>.public static Observable<Event> addListener(Widget widget, Stream<Integer> events)
Observable
<Event
>.public static Observable<Point> rightClickGlobal(Control ctl)
Observable
<Point
> of the right-click mouse-up on the given control, in global coordinates.public static Observable<Point> rightClickLocal(Control ctl)
Observable
<Point
> of the right-click mouse-up on the given control, in local coordinates.public static RxBox<String> textImmediate(Text text)
public static RxBox<String> textConfirmed(Text text)