Package | Description |
---|---|
org.eclipse.core.databinding |
Provides classes for binding observable objects, for example UI widgets and model objects.
|
org.eclipse.core.databinding.validation |
Provides the core APIs for validation.
|
org.eclipse.jface.databinding.dialog | |
org.eclipse.jface.databinding.fieldassist |
Provides classes that bridge between data binding and the JFace Fieldassist framework.
|
Modifier and Type | Class and Description |
---|---|
class |
Binding
This abstract class represents a binding between a model and a target.
|
class |
ListBinding<M,T> |
class |
SetBinding<M,T> |
Modifier and Type | Method and Description |
---|---|
IObservableList<ValidationStatusProvider> |
DataBindingContext.getValidationStatusProviders()
Returns an unmodifiable
IObservableList of all validation status
providers in order by time of addition. |
static IListProperty<ValidationStatusProvider,IObservable> |
BindingProperties.models()
Returns an
IListProperty for observing the models of a
ValidationStatusProvider . |
static IListProperty<ValidationStatusProvider,IObservable> |
BindingProperties.targets()
Returns an
IListProperty for observing the targets of a
ValidationStatusProvider . |
static IValueProperty<ValidationStatusProvider,IStatus> |
BindingProperties.validationStatus()
Returns an
IValueProperty for observing the validation status of
a ValidationStatusProvider . |
static IListProperty<DataBindingContext,ValidationStatusProvider> |
BindingProperties.validationStatusProviders()
Returns an
IListProperty for observing the validation status
providers of a DataBindingContext . |
Modifier and Type | Method and Description |
---|---|
void |
DataBindingContext.addValidationStatusProvider(ValidationStatusProvider validationStatusProvider)
Adds the given validation status provider to this data binding context.
|
boolean |
DataBindingContext.removeValidationStatusProvider(ValidationStatusProvider validationStatusProvider)
Removes the validation status provider.
|
Modifier and Type | Method and Description |
---|---|
static IStatus |
AggregateValidationStatus.getStatusMaxSeverity(Collection<? extends ValidationStatusProvider> validationStatusProviders)
Returns a status that always returns the most severe status from the
given validation status providers.
|
static IStatus |
AggregateValidationStatus.getStatusMerged(Collection<? extends ValidationStatusProvider> validationStatusProviders)
Returns a status object that merges multiple non-OK status objects in a
MultiStatus . |
Constructor and Description |
---|
AggregateValidationStatus(IObservableCollection<? extends ValidationStatusProvider> validationStatusProviders,
int strategy) |
AggregateValidationStatus(Realm realm,
IObservableCollection<? extends ValidationStatusProvider> validationStatusProviders,
int strategy) |
Modifier and Type | Class and Description |
---|---|
class |
MultiValidator
A validator for cross-constraints between observables.
|
Modifier and Type | Method and Description |
---|---|
String |
IValidationMessageProvider.getMessage(ValidationStatusProvider statusProvider)
Returns the validation message text for the given validation status
provider.
|
String |
ValidationMessageProvider.getMessage(ValidationStatusProvider statusProvider)
Returns the
message of the
IStatus contained in the provided
validationStatusProvider as is or null if the
validationStatusProvider is itself null . |
int |
IValidationMessageProvider.getMessageType(ValidationStatusProvider statusProvider)
Returns the validation message type as one of the constants defined in
IMessageProvider for the given validation status provider. |
int |
ValidationMessageProvider.getMessageType(ValidationStatusProvider statusProvider)
Returns the message type defined in
IMessageProvider which
naturally maps to the IStatus.getSeverity() of the
IStatus contained in the provided
validationStatusProvider . |
Modifier and Type | Method and Description |
---|---|
static ControlDecorationSupport |
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 |
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 |
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 . |
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.