public class ListBinding extends Binding
disposed
Constructor and Description |
---|
ListBinding(IObservableList target,
IObservableList model,
UpdateListStrategy targetToModelStrategy,
UpdateListStrategy modelToTargetStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes of this Binding.
|
IObservableValue |
getValidationStatus() |
protected void |
postInit()
Called by
Binding.init(DataBindingContext) after adding this binding to
the context. |
protected void |
preInit()
Called by
Binding.init(DataBindingContext) after setting
Binding.context but before adding this binding to the context. |
void |
updateModelToTarget()
Updates the target's state from the model's state at the next reasonable
opportunity.
|
void |
updateTargetToModel()
Updates the model's state from the target's state at the next reasonable
opportunity.
|
void |
validateModelToTarget()
Validates the model's state at the next reasonable
opportunity.
|
void |
validateTargetToModel()
Validates the target's state at the next reasonable
opportunity.
|
getModel, getModels, getTarget, getTargets, init
isDisposed
public ListBinding(IObservableList target, IObservableList model, UpdateListStrategy targetToModelStrategy, UpdateListStrategy modelToTargetStrategy)
target
- model
- modelToTargetStrategy
- targetToModelStrategy
- public IObservableValue getValidationStatus()
getValidationStatus
in class ValidationStatusProvider
IObservableValue
< IStatus
> containing
the current validation statusprotected void preInit()
Binding
Binding.init(DataBindingContext)
after setting
Binding.context
but before adding this binding to the context.
Subclasses may use this method to perform initialization that could not
be done in the constructor. Care should be taken not to cause any events
while running this method.protected void postInit()
Binding
Binding.init(DataBindingContext)
after adding this binding to
the context. Subclasses may use this method to perform initialization
that may cause events to be fired, including BindingEvents that are
forwarded to the data binding context.public void updateModelToTarget()
Binding
updateModelToTarget
in class Binding
public void updateTargetToModel()
Binding
updateTargetToModel
in class Binding
public void validateModelToTarget()
Binding
validateModelToTarget
in class Binding
public void validateTargetToModel()
Binding
validateTargetToModel
in class Binding
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.