public class ControlDecorationSupport extends Object
ValidationStatusProvider
with ControlDecoration
s mirroring
the current validation status. Only those target observables which implement
ISWTObservable
or IViewerObservable
are decorated.Modifier and Type | Method and Description |
---|---|
static ControlDecorationSupport |
create(IObservableValue<IStatus> validationStatus,
int position,
Composite composite,
ControlDecorationUpdater updater,
IObservable... targetsToBeDecorated)
Creates a ControlDecorationSupport which observes the validation status
and displays a
ControlDecoration over the underlying SWT control
of all target observables that implement ISWTObservable or
IViewerObservable . |
static ControlDecorationSupport |
create(IObservableValue<IStatus> validationStatus,
int position,
Composite composite,
ControlDecorationUpdater updater,
IObservableList<IObservable> targetsToBeDecorated)
Creates a ControlDecorationSupport which observes the validation status
and displays a
ControlDecoration over the underlying SWT control
of all target observables that implement ISWTObservable or
IViewerObservable . |
static ControlDecorationSupport |
create(IObservableValue<IStatus> validationStatus,
int position,
Composite composite,
IObservable... targetsToBeDecorated)
Creates a ControlDecorationSupport which observes the validation status
and displays a
ControlDecoration over the underlying SWT control
of all target observables that implement ISWTObservable or
IViewerObservable . |
static ControlDecorationSupport |
create(IObservableValue<IStatus> validationStatus,
int position,
Composite composite,
IObservableList<IObservable> targetsToBeDecorated)
Creates a ControlDecorationSupport which observes the validation status
and displays a
ControlDecoration over the underlying SWT control
of all target observables that implement ISWTObservable or
IViewerObservable . |
static ControlDecorationSupport |
create(IObservableValue<IStatus> validationStatus,
int position,
IObservable... targetsToBeDecorated)
Creates a ControlDecorationSupport which observes the given validation
status and displays a
ControlDecoration over the underlying SWT
control of all target observables that implement ISWTObservable
or IViewerObservable . |
static ControlDecorationSupport |
create(IObservableValue<IStatus> validationStatus,
int position,
IObservableList<IObservable> targetsToBeDecorated)
Creates a ControlDecorationSupport which observes the given validation
status and displays a
ControlDecoration over the underlying SWT
control of all target observables that implement ISWTObservable
or IViewerObservable . |
static ControlDecorationSupport |
create(ValidationStatusProvider validationStatusProvider,
int position)
Creates a ControlDecorationSupport which observes the validation status
of the specified
ValidationStatusProvider , and displays a
ControlDecoration over the underlying SWT control of all target
observables that implement ISWTObservable or
IViewerObservable . |
static ControlDecorationSupport |
create(ValidationStatusProvider validationStatusProvider,
int position,
Composite composite)
Creates a ControlDecorationSupport which observes the validation status
of the specified
ValidationStatusProvider , and displays a
ControlDecoration over the underlying SWT control of all target
observables that implement ISWTObservable or
IViewerObservable . |
static ControlDecorationSupport |
create(ValidationStatusProvider validationStatusProvider,
int position,
Composite composite,
ControlDecorationUpdater updater)
Creates a ControlDecorationSupport which observes the validation status
of the specified
ValidationStatusProvider , and displays a
ControlDecoration over the underlying SWT control of all target
observables that implement ISWTObservable or
IViewerObservable . |
void |
dispose()
Disposes this ControlDecorationSupport, including all control decorations
managed by it.
|
public static ControlDecorationSupport create(ValidationStatusProvider validationStatusProvider, int position)
ValidationStatusProvider
, and displays a
ControlDecoration
over the underlying SWT control of all target
observables that implement ISWTObservable
or
IViewerObservable
.validationStatusProvider
- the ValidationStatusProvider
to monitor.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when
constructing ControlDecorationSupport
ValidationStatusProvider
, and displays a
ControlDecoration
over the underlying SWT control of all
target observables that implement ISWTObservable
or
IViewerObservable
.public static ControlDecorationSupport create(IObservableValue<IStatus> validationStatus, int position, IObservable... targetsToBeDecorated)
ControlDecoration
over the underlying SWT
control of all target observables that implement ISWTObservable
or IViewerObservable
.validationStatus
- an IObservable
containing an IStatus
, which
will be tracked by the ControlDecorationSupport
.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when
constructing ControlDecorationSupport
targetsToBeDecorated
- the target observables, which contain widget to be decorated
according to the current validation statusControlDecoration
over the underlying SWT
control of all target observables that implement
ISWTObservable
or IViewerObservable
.public static ControlDecorationSupport create(IObservableValue<IStatus> validationStatus, int position, IObservableList<IObservable> targetsToBeDecorated)
ControlDecoration
over the underlying SWT
control of all target observables that implement ISWTObservable
or IViewerObservable
.validationStatus
- an IObservable
containing an IStatus
, which
will be tracked by the ControlDecorationSupport
.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when
constructing ControlDecorationSupport
targetsToBeDecorated
- the target observables, which contain widget to be decorated
according to the current validation statusControlDecoration
over the underlying SWT
control of all target observables that implement
ISWTObservable
or IViewerObservable
.public static ControlDecorationSupport create(ValidationStatusProvider validationStatusProvider, int position, Composite composite)
ValidationStatusProvider
, and displays a
ControlDecoration
over the underlying SWT control of all target
observables that implement ISWTObservable
or
IViewerObservable
.validationStatusProvider
- the ValidationStatusProvider
to monitor.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when
constructing ControlDecoration
instances.composite
- the composite to use when constructing
ControlDecoration
instances.ValidationStatusProvider
, and displays a
ControlDecoration
over the underlying SWT control of all
target observables that implement ISWTObservable
or
IViewerObservable
.public static ControlDecorationSupport create(IObservableValue<IStatus> validationStatus, int position, Composite composite, IObservable... targetsToBeDecorated)
ControlDecoration
over the underlying SWT control
of all target observables that implement ISWTObservable
or
IViewerObservable
.validationStatus
- an IObservable
containing an IStatus
, which
will be tracked by the ControlDecorationSupport
.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when
constructing ControlDecorationSupport
targetsToBeDecorated
- the target observables, which contain widget to be decorated
according to the current validation statuscomposite
- the composite to use when constructing
ControlDecoration
instances.ControlDecoration
over the underlying SWT
control of all target observables that implement
ISWTObservable
or IViewerObservable
.public static ControlDecorationSupport create(IObservableValue<IStatus> validationStatus, int position, Composite composite, IObservableList<IObservable> targetsToBeDecorated)
ControlDecoration
over the underlying SWT control
of all target observables that implement ISWTObservable
or
IViewerObservable
.validationStatus
- an IObservable
containing an IStatus
, which
will be tracked by the ControlDecorationSupport
.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when
constructing ControlDecorationSupport
targetsToBeDecorated
- the target observables, which contain widget to be decorated
according to the current validation statuscomposite
- the composite to use when constructing
ControlDecoration
instances.ControlDecoration
over the underlying SWT
control of all target observables that implement
ISWTObservable
or IViewerObservable
.public static ControlDecorationSupport create(ValidationStatusProvider validationStatusProvider, int position, Composite composite, ControlDecorationUpdater updater)
ValidationStatusProvider
, and displays a
ControlDecoration
over the underlying SWT control of all target
observables that implement ISWTObservable
or
IViewerObservable
.validationStatusProvider
- the ValidationStatusProvider
to monitor.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when
constructing ControlDecoration
instances.composite
- the composite to use when constructing
ControlDecoration
instances.updater
- custom strategy for updating the ControlDecoration
(s)
whenever the validation status changes.ValidationStatusProvider
, and displays a
ControlDecoration
over the underlying SWT control of all
target observables that implement ISWTObservable
or
IViewerObservable
.public static ControlDecorationSupport create(IObservableValue<IStatus> validationStatus, int position, Composite composite, ControlDecorationUpdater updater, IObservable... targetsToBeDecorated)
ControlDecoration
over the underlying SWT control
of all target observables that implement ISWTObservable
or
IViewerObservable
.validationStatus
- an IObservable
containing an IStatus
, which
will be tracked by the ControlDecorationSupport
.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when
constructing ControlDecorationSupport
composite
- the composite to use when constructing
ControlDecoration
instances.updater
- custom strategy for updating the ControlDecoration
(s)
whenever the validation status changes.targetsToBeDecorated
- the target observables, which contain widget to be decorated
according to the current validation statusControlDecoration
over the underlying SWT
control of all target observables that implement
ISWTObservable
or IViewerObservable
.public static ControlDecorationSupport create(IObservableValue<IStatus> validationStatus, int position, Composite composite, ControlDecorationUpdater updater, IObservableList<IObservable> targetsToBeDecorated)
ControlDecoration
over the underlying SWT control
of all target observables that implement ISWTObservable
or
IViewerObservable
.validationStatus
- an IObservable
containing an IStatus
, which
will be tracked by the ControlDecorationSupport
.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when
constructing ControlDecorationSupport
composite
- the composite to use when constructing
ControlDecoration
instances.updater
- custom strategy for updating the ControlDecoration
(s)
whenever the validation status changes.targetsToBeDecorated
- the target observables, which contain widget to be decorated
according to the current validation statusControlDecoration
over the underlying SWT
control of all target observables that implement
ISWTObservable
or IViewerObservable
.public void dispose()
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.