@Deprecated public class SWTObservables extends Object
| Constructor and Description |
|---|
SWTObservables()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static Realm |
getRealm(Display display)
Deprecated.
please use
DisplayRealm.getRealm(Display) instead. |
static ISWTObservableValue |
observeBackground(Control control)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeBounds(Control control)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeDelayedValue(int delay,
ISWTObservableValue observable)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeEditable(Control control)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeEnabled(Control control)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeEnabled(Widget widget)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeFocus(Control control)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeFont(Control control)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeForeground(Control control)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeImage(Widget widget)
Deprecated.
use
WidgetProperties instead |
static IObservableList |
observeItems(Control control)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeLocation(Control control)
Deprecated.
Returns an observable value tracking the location of the given control.
|
static ISWTObservableValue |
observeMax(Control control)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeMessage(Widget widget)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeMin(Control control)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeSelection(Control control)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeSelection(Widget widget)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeSingleSelectionIndex(Control control)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeSize(Control control)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeText(Control control)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeText(Control control,
int event)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeText(Control control,
int[] events)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeText(Widget widget)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeTooltipText(Control control)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeTooltipText(Widget widget)
Deprecated.
use
WidgetProperties instead |
static ISWTObservableValue |
observeVisible(Control control)
Deprecated.
use
WidgetProperties instead |
@Deprecated public static Realm getRealm(Display display)
DisplayRealm.getRealm(Display) instead.display - @Deprecated public static ISWTObservableValue observeDelayedValue(int delay, ISWTObservableValue observable)
WidgetProperties insteadobservable until delay milliseconds have
elapsed since the last change event, or until a FocusOut event is
received from the underlying widget (whichever happens first). This
observable helps to boost performance in situations where an observable
has computationally expensive listeners (e.g. changing filters in a
viewer) or many dependencies (master fields with multiple detail fields).
A common use of this observable is to delay validation of user input
until the user stops typing in a UI field.
To notify about pending changes, the returned observable fires a stale
event when the wrapped observable value fires a change event, and remains
stale until the delay has elapsed and the value change is fired. A call
to getValue() while a value change is
pending will fire the value change immediately, short-circuiting the
delay.
Note that this observable will not forward ValueChangingEvent
events from a wrapped IVetoableValue.
delay - the delay in millisecondsobservable - the observable being delayedobservable until delay
milliseconds have elapsed since the last change event.@Deprecated public static ISWTObservableValue observeEnabled(Widget widget)
WidgetProperties insteadwidget - @Deprecated public static ISWTObservableValue observeEnabled(Control control)
WidgetProperties insteadcontrol - the control to observe@Deprecated public static ISWTObservableValue observeVisible(Control control)
WidgetProperties insteadcontrol - the control to observe@Deprecated public static ISWTObservableValue observeTooltipText(Widget widget)
WidgetProperties insteadwidget - @Deprecated public static ISWTObservableValue observeTooltipText(Control control)
WidgetProperties insteadcontrol - the control to observe@Deprecated public static ISWTObservableValue observeSelection(Widget widget)
WidgetProperties insteadcontrol. The supported types are:
widget - IllegalArgumentException - if control type is unsupported@Deprecated public static ISWTObservableValue observeSelection(Control control)
WidgetProperties insteadcontrol. The supported types are:
control - IllegalArgumentException - if control type is unsupported@Deprecated public static ISWTObservableValue observeMin(Control control)
WidgetProperties insteadcontrol. The supported types are:
control - IllegalArgumentException - if control type is unsupported@Deprecated public static ISWTObservableValue observeMax(Control control)
WidgetProperties insteadcontrol. The supported types are:
control - IllegalArgumentException - if control type is unsupported@Deprecated public static ISWTObservableValue observeText(Control control, int[] events)
WidgetProperties insteadcontrol. The supported types are:
control - events - array of SWT event types to register for change events. May
include SWT.None, SWT.Modify,
SWT.FocusOut or SWT.DefaultSelection.IllegalArgumentException - if control type is unsupported@Deprecated public static ISWTObservableValue observeText(Control control, int event)
WidgetProperties insteadcontrol. The supported types are:
control - event - event type to register for change eventsIllegalArgumentException - if control type is unsupported@Deprecated public static ISWTObservableValue observeText(Widget widget)
WidgetProperties insteadwidget. The supported types are:
widget - IllegalArgumentException - if the type of widget is unsupported@Deprecated public static ISWTObservableValue observeText(Control control)
WidgetProperties insteadcontrol. The supported types are:
control - IllegalArgumentException - if control type is unsupported@Deprecated public static ISWTObservableValue observeMessage(Widget widget)
WidgetProperties insteadwidget. the supported types are:
widget - widget.@Deprecated public static ISWTObservableValue observeImage(Widget widget)
WidgetProperties insteadwidget. The supported types are:
widget - IllegalArgumentException - if widget type is unsupported@Deprecated public static IObservableList observeItems(Control control)
WidgetProperties insteadcontrol. The supported types are:
control - IllegalArgumentException - if control type is unsupported@Deprecated public static ISWTObservableValue observeSingleSelectionIndex(Control control)
WidgetProperties insteadcontrol. The supported types are:
control - IllegalArgumentException - if control type is unsupported@Deprecated public static ISWTObservableValue observeForeground(Control control)
WidgetProperties insteadcontrol - the control to observe@Deprecated public static ISWTObservableValue observeBackground(Control control)
WidgetProperties insteadcontrol - the control to observe@Deprecated public static ISWTObservableValue observeFont(Control control)
WidgetProperties insteadcontrol - the control to observe@Deprecated public static ISWTObservableValue observeSize(Control control)
WidgetProperties insteadcontrol - the control to observepublic static ISWTObservableValue observeLocation(Control control)
control - the control to observe@Deprecated public static ISWTObservableValue observeFocus(Control control)
WidgetProperties insteadcontrol - the control to observe@Deprecated public static ISWTObservableValue observeBounds(Control control)
WidgetProperties insteadcontrol - the control to observe@Deprecated public static ISWTObservableValue observeEditable(Control control)
WidgetProperties insteadcontrol. The supported types are:
control - IllegalArgumentException - if control type is unsupported
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.