Class ControlDecorationSupport
- java.lang.Object
-
- org.eclipse.jface.databinding.fieldassist.ControlDecorationSupport
-
public class ControlDecorationSupport extends Object
Decorates the underlying controls of the target observables of aValidationStatusProviderwithControlDecorations mirroring the current validation status. Only those target observables which implementISWTObservableorIViewerObservableare decorated.- Since:
- 1.4
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ControlDecorationSupportcreate(IObservableValue<IStatus> validationStatus, int position, IObservable... targetsToBeDecorated)Creates a ControlDecorationSupport which observes the given validation status and displays aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.static ControlDecorationSupportcreate(IObservableValue<IStatus> validationStatus, int position, IObservableList<IObservable> targetsToBeDecorated)Creates a ControlDecorationSupport which observes the given validation status and displays aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.static ControlDecorationSupportcreate(IObservableValue<IStatus> validationStatus, int position, Composite composite, IObservable... targetsToBeDecorated)Creates a ControlDecorationSupport which observes the validation status and displays aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.static ControlDecorationSupportcreate(IObservableValue<IStatus> validationStatus, int position, Composite composite, IObservableList<IObservable> targetsToBeDecorated)Creates a ControlDecorationSupport which observes the validation status and displays aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.static ControlDecorationSupportcreate(IObservableValue<IStatus> validationStatus, int position, Composite composite, ControlDecorationUpdater updater, IObservable... targetsToBeDecorated)Creates a ControlDecorationSupport which observes the validation status and displays aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.static ControlDecorationSupportcreate(IObservableValue<IStatus> validationStatus, int position, Composite composite, ControlDecorationUpdater updater, IObservableList<IObservable> targetsToBeDecorated)Creates a ControlDecorationSupport which observes the validation status and displays aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.static ControlDecorationSupportcreate(ValidationStatusProvider validationStatusProvider, int position)Creates a ControlDecorationSupport which observes the validation status of the specifiedValidationStatusProvider, and displays aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.static ControlDecorationSupportcreate(ValidationStatusProvider validationStatusProvider, int position, Composite composite)Creates a ControlDecorationSupport which observes the validation status of the specifiedValidationStatusProvider, and displays aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.static ControlDecorationSupportcreate(ValidationStatusProvider validationStatusProvider, int position, Composite composite, ControlDecorationUpdater updater)Creates a ControlDecorationSupport which observes the validation status of the specifiedValidationStatusProvider, and displays aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.voiddispose()Disposes this ControlDecorationSupport, including all control decorations managed by it.
-
-
-
Method Detail
-
create
public static ControlDecorationSupport create(ValidationStatusProvider validationStatusProvider, int position)
Creates a ControlDecorationSupport which observes the validation status of the specifiedValidationStatusProvider, and displays aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.- Parameters:
validationStatusProvider- theValidationStatusProviderto 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 aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.
-
create
public static ControlDecorationSupport create(IObservableValue<IStatus> validationStatus, int position, IObservable... targetsToBeDecorated)
Creates a ControlDecorationSupport which observes the given validation status and displays aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.- Parameters:
validationStatus- anIObservablecontaining anIStatus, which will be tracked by theControlDecorationSupport.position- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecorationSupporttargetsToBeDecorated- 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
ControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable. - 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 aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.- Parameters:
validationStatus- anIObservablecontaining anIStatus, which will be tracked by theControlDecorationSupport.position- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecorationSupporttargetsToBeDecorated- 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
ControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable. - 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 aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.- Parameters:
validationStatusProvider- theValidationStatusProviderto monitor.position- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecorationinstances.composite- the composite to use when constructingControlDecorationinstances.- Returns:
- a ControlDecorationSupport which observes the validation status
of the specified
ValidationStatusProvider, and displays aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.
-
create
public static ControlDecorationSupport create(IObservableValue<IStatus> validationStatus, int position, Composite composite, IObservable... targetsToBeDecorated)
Creates a ControlDecorationSupport which observes the validation status and displays aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.- Parameters:
validationStatus- anIObservablecontaining anIStatus, which will be tracked by theControlDecorationSupport.position- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecorationSupporttargetsToBeDecorated- the target observables, which contain widget to be decorated according to the current validation statuscomposite- the composite to use when constructingControlDecorationinstances.- Returns:
- a ControlDecorationSupport which observes the validation status
and displays a
ControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable. - 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 aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.- Parameters:
validationStatus- anIObservablecontaining anIStatus, which will be tracked by theControlDecorationSupport.position- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecorationSupporttargetsToBeDecorated- the target observables, which contain widget to be decorated according to the current validation statuscomposite- the composite to use when constructingControlDecorationinstances.- Returns:
- a ControlDecorationSupport which observes the validation status
and displays a
ControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable. - 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 aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.- Parameters:
validationStatusProvider- theValidationStatusProviderto monitor.position- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecorationinstances.composite- the composite to use when constructingControlDecorationinstances.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 aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.
-
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 aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.- Parameters:
validationStatus- anIObservablecontaining anIStatus, which will be tracked by theControlDecorationSupport.position- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecorationSupportcomposite- the composite to use when constructingControlDecorationinstances.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
ControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable. - 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 aControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable.- Parameters:
validationStatus- anIObservablecontaining anIStatus, which will be tracked by theControlDecorationSupport.position- SWT alignment constant (e.g. SWT.LEFT | SWT.TOP) to use when constructingControlDecorationSupportcomposite- the composite to use when constructingControlDecorationinstances.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
ControlDecorationover the underlying SWT control of all target observables that implementISWTObservableorIViewerObservable. - 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.
-
-