Class ControlDecorationSupport
java.lang.Object
org.eclipse.jface.databinding.fieldassist.ControlDecorationSupport
Decorates the underlying controls of the target observables of a
ValidationStatusProvider
with ControlDecoration
s mirroring
the current validation status. Only those target observables which implement
ISWTObservable
or IViewerObservable
are decorated.- Since:
- 1.4
-
Method Summary
Modifier and TypeMethodDescriptionstatic ControlDecorationSupport
create
(IObservableValue<IStatus> validationStatus, int position, IObservable... targetsToBeDecorated) Creates a ControlDecorationSupport which observes the given validation status and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.static ControlDecorationSupport
create
(IObservableValue<IStatus> validationStatus, int position, IObservableList<IObservable> targetsToBeDecorated) Creates a ControlDecorationSupport which observes the given validation status and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.static ControlDecorationSupport
create
(IObservableValue<IStatus> validationStatus, int position, Composite composite, IObservable... targetsToBeDecorated) Creates a ControlDecorationSupport which observes the validation status and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.static ControlDecorationSupport
create
(IObservableValue<IStatus> validationStatus, int position, Composite composite, IObservableList<IObservable> targetsToBeDecorated) Creates a ControlDecorationSupport which observes the validation status and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.static ControlDecorationSupport
create
(IObservableValue<IStatus> validationStatus, int position, Composite composite, ControlDecorationUpdater updater, IObservable... targetsToBeDecorated) Creates a ControlDecorationSupport which observes the validation status and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.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 aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.static ControlDecorationSupport
create
(ValidationStatusProvider validationStatusProvider, int position) Creates a ControlDecorationSupport which observes the validation status of the specifiedValidationStatusProvider
, and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.static ControlDecorationSupport
create
(ValidationStatusProvider validationStatusProvider, int position, Composite composite) Creates a ControlDecorationSupport which observes the validation status of the specifiedValidationStatusProvider
, and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.static ControlDecorationSupport
create
(ValidationStatusProvider validationStatusProvider, int position, Composite composite, ControlDecorationUpdater updater) Creates a ControlDecorationSupport which observes the validation status of the specifiedValidationStatusProvider
, and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.void
dispose()
Disposes this ControlDecorationSupport, including all control decorations managed by it.
-
Method Details
-
create
public static ControlDecorationSupport create(ValidationStatusProvider validationStatusProvider, int position) Creates a ControlDecorationSupport which observes the validation status of the specifiedValidationStatusProvider
, and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.- Parameters:
validationStatusProvider
- theValidationStatusProvider
to monitor.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecorationSupport
- Returns:
- a ControlDecorationSupport which observes the validation status
of the specified
ValidationStatusProvider
, and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.
-
create
public static ControlDecorationSupport create(IObservableValue<IStatus> validationStatus, int position, IObservable... targetsToBeDecorated) Creates a ControlDecorationSupport which observes the given validation status and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.- Parameters:
validationStatus
- anIObservable
containing anIStatus
, which will be tracked by theControlDecorationSupport
.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecorationSupport
targetsToBeDecorated
- the target observables, which contain widget to be decorated according to the current validation status- Returns:
- a ControlDecorationSupport which observes the validation status
and displays a
ControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
. - Since:
- 1.8
-
create
public static ControlDecorationSupport create(IObservableValue<IStatus> validationStatus, int position, IObservableList<IObservable> targetsToBeDecorated) Creates a ControlDecorationSupport which observes the given validation status and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.- Parameters:
validationStatus
- anIObservable
containing anIStatus
, which will be tracked by theControlDecorationSupport
.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecorationSupport
targetsToBeDecorated
- the target observables, which contain widget to be decorated according to the current validation status- Returns:
- a ControlDecorationSupport which observes the validation status
and displays a
ControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
. - Since:
- 1.8
-
create
public static ControlDecorationSupport create(ValidationStatusProvider validationStatusProvider, int position, Composite composite) Creates a ControlDecorationSupport which observes the validation status of the specifiedValidationStatusProvider
, and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.- Parameters:
validationStatusProvider
- theValidationStatusProvider
to monitor.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecoration
instances.composite
- the composite to use when constructingControlDecoration
instances.- Returns:
- a ControlDecorationSupport which observes the validation status
of the specified
ValidationStatusProvider
, and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.
-
create
public static ControlDecorationSupport create(IObservableValue<IStatus> validationStatus, int position, Composite composite, IObservable... targetsToBeDecorated) Creates a ControlDecorationSupport which observes the validation status and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.- Parameters:
validationStatus
- anIObservable
containing anIStatus
, which will be tracked by theControlDecorationSupport
.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecorationSupport
targetsToBeDecorated
- the target observables, which contain widget to be decorated according to the current validation statuscomposite
- the composite to use when constructingControlDecoration
instances.- Returns:
- a ControlDecorationSupport which observes the validation status
and displays a
ControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
. - Since:
- 1.8
-
create
public static ControlDecorationSupport create(IObservableValue<IStatus> validationStatus, int position, Composite composite, IObservableList<IObservable> targetsToBeDecorated) Creates a ControlDecorationSupport which observes the validation status and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.- Parameters:
validationStatus
- anIObservable
containing anIStatus
, which will be tracked by theControlDecorationSupport
.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecorationSupport
targetsToBeDecorated
- the target observables, which contain widget to be decorated according to the current validation statuscomposite
- the composite to use when constructingControlDecoration
instances.- Returns:
- a ControlDecorationSupport which observes the validation status
and displays a
ControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
. - Since:
- 1.8
-
create
public static ControlDecorationSupport create(ValidationStatusProvider validationStatusProvider, int position, Composite composite, ControlDecorationUpdater updater) Creates a ControlDecorationSupport which observes the validation status of the specifiedValidationStatusProvider
, and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.- Parameters:
validationStatusProvider
- theValidationStatusProvider
to monitor.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecoration
instances.composite
- the composite to use when constructingControlDecoration
instances.updater
- custom strategy for updating theControlDecoration
(s) whenever the validation status changes.- Returns:
- a ControlDecorationSupport which observes the validation status
of the specified
ValidationStatusProvider
, and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.
-
create
public static ControlDecorationSupport create(IObservableValue<IStatus> validationStatus, int position, Composite composite, ControlDecorationUpdater updater, IObservable... targetsToBeDecorated) Creates a ControlDecorationSupport which observes the validation status and displays aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.- Parameters:
validationStatus
- anIObservable
containing anIStatus
, which will be tracked by theControlDecorationSupport
.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecorationSupport
composite
- the composite to use when constructingControlDecoration
instances.updater
- custom strategy for updating theControlDecoration
(s) whenever the validation status changes.targetsToBeDecorated
- the target observables, which contain widget to be decorated according to the current validation status- Returns:
- a ControlDecorationSupport which observes the validation status
and displays a
ControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
. - Since:
- 1.8
-
create
public 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 aControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
.- Parameters:
validationStatus
- anIObservable
containing anIStatus
, which will be tracked by theControlDecorationSupport
.position
- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecorationSupport
composite
- the composite to use when constructingControlDecoration
instances.updater
- custom strategy for updating theControlDecoration
(s) whenever the validation status changes.targetsToBeDecorated
- the target observables, which contain widget to be decorated according to the current validation status- Returns:
- a ControlDecorationSupport which observes the validation status
and displays a
ControlDecoration
over the underlying SWT control of all target observables that implementISWTObservable
orIViewerObservable
. - Since:
- 1.8
-
dispose
public void dispose()Disposes this ControlDecorationSupport, including all control decorations managed by it. A ControlDecorationSupport is automatically disposed when its target ValidationStatusProvider is disposed.
-