|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.databinding.swt.SWTObservables
A factory for creating observables for SWT widgets
Constructor Summary | |
SWTObservables()
|
Method Summary | |
static Realm |
getRealm(Display display)
Returns the realm representing the UI thread for the given display. |
static ISWTObservableValue |
observeBackground(Control control)
|
static ISWTObservableValue |
observeDelayedValue(int delay,
ISWTObservableValue observable)
Returns an observable which delays notification of value change events from observable until delay milliseconds
have passed since the last change event, or until a FocusOut event is
received from the underlying widget (whichever happens earlier). |
static ISWTObservableValue |
observeEditable(Control control)
Returns an observable observing the editable attribute of the provided control . |
static ISWTObservableValue |
observeEnabled(Control control)
|
static ISWTObservableValue |
observeFont(Control control)
|
static ISWTObservableValue |
observeForeground(Control control)
|
static IObservableList |
observeItems(Control control)
Returns an observable observing the items attribute of the provided control . |
static ISWTObservableValue |
observeMax(Control control)
Returns an observable observing the maximum attribute of the provided control . |
static ISWTObservableValue |
observeMin(Control control)
Returns an observable observing the minimum attribute of the provided control . |
static ISWTObservableValue |
observeSelection(Control control)
Returns an observable observing the selection attribute of the provided control . |
static ISWTObservableValue |
observeSingleSelectionIndex(Control control)
Returns an observable observing the single selection index attribute of the provided control . |
static ISWTObservableValue |
observeText(Control control)
Returns an observable observing the text attribute of the provided control . |
static ISWTObservableValue |
observeText(Control control,
int event)
Returns an observable observing the text attribute of the provided control . |
static ISWTObservableValue |
observeTooltipText(Control control)
|
static ISWTObservableValue |
observeVisible(Control control)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SWTObservables()
Method Detail |
public static Realm getRealm(Display display)
display
-
public static ISWTObservableValue observeDelayedValue(int delay, ISWTObservableValue observable)
observable
until delay
milliseconds
have passed since the last change event, or until a FocusOut event is
received from the underlying widget (whichever happens earlier). This
class helps to delay validation until the user stops typing. To notify
about pending changes, the returned observable value will fire a stale
event when the wrapped observable value fires a change event, but this
change is being delayed.
delay
- observable
-
observable
until delay
milliseconds have passed since the last change event.public static ISWTObservableValue observeEnabled(Control control)
control
-
public static ISWTObservableValue observeVisible(Control control)
control
-
public static ISWTObservableValue observeTooltipText(Control control)
control
-
public static ISWTObservableValue observeSelection(Control control)
control
. The supported types are:
control
-
IllegalArgumentException
- if control
type is unsupportedpublic static ISWTObservableValue observeMin(Control control)
control
. The supported types are:
control
-
IllegalArgumentException
- if control
type is unsupportedpublic static ISWTObservableValue observeMax(Control control)
control
. The supported types are:
control
-
IllegalArgumentException
- if control
type is unsupportedpublic static ISWTObservableValue observeText(Control control, int event)
control
. The supported types are:
control
- event
- event type to register for change events
IllegalArgumentException
- if control
type is unsupportedpublic static ISWTObservableValue observeText(Control control)
control
. The supported types are:
control
-
IllegalArgumentException
- if control
type is unsupportedpublic static IObservableList observeItems(Control control)
control
. The supported types are:
control
-
IllegalArgumentException
- if control
type is unsupportedpublic static ISWTObservableValue observeSingleSelectionIndex(Control control)
control
. The supported types are:
control
-
IllegalArgumentException
- if control
type is unsupportedpublic static ISWTObservableValue observeForeground(Control control)
control
-
public static ISWTObservableValue observeBackground(Control control)
control
-
public static ISWTObservableValue observeFont(Control control)
control
-
public static ISWTObservableValue observeEditable(Control control)
control
. The supported types are:
control
-
IllegalArgumentException
- if control
type is unsupported
|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.