public class ControlDecorationSupport extends Object
ValidationStatusProvider with ControlDecorations 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(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 ControlDecorationSupportValidationStatusProvider, and displays a
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)
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(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 void dispose()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.