|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.databinding.Binding
This abstract class represents a binding between a model and a target. Newly
created instances need to be added to a data binding context using
init(DataBindingContext)
.
Field Summary | |
---|---|
protected DataBindingContext |
context
|
protected boolean |
disposed
|
Constructor Summary | |
---|---|
Binding(IObservable target,
IObservable model)
Creates a new binding. |
Method Summary | |
---|---|
void |
dispose()
Disposes of this Binding. |
IObservable |
getModel()
|
IObservable |
getTarget()
|
abstract IObservableValue |
getValidationStatus()
|
void |
init(DataBindingContext context)
Initializes this binding with the given context and adds it to the list of bindings of the context. |
boolean |
isDisposed()
|
protected abstract void |
postInit()
Called by init(DataBindingContext) after adding this binding to
the context. |
protected abstract void |
preInit()
Called by init(DataBindingContext) after setting
context but before adding this binding to the context.
|
abstract void |
updateModelToTarget()
Updates the target's state from the model's state at the next reasonable opportunity. |
abstract void |
updateTargetToModel()
Updates the model's state from the target's state at the next reasonable opportunity. |
abstract void |
validateModelToTarget()
Validates the model's state at the next reasonable opportunity. |
abstract void |
validateTargetToModel()
Validates the target's state at the next reasonable opportunity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected DataBindingContext context
protected boolean disposed
Constructor Detail |
public Binding(IObservable target, IObservable model)
target
- target observablemodel
- model observableMethod Detail |
public final void init(DataBindingContext context)
Subclasses may extend, but must call the super implementation.
context
- protected abstract void preInit()
init(DataBindingContext)
after setting
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 abstract void postInit()
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 abstract IObservableValue getValidationStatus()
public abstract void updateTargetToModel()
public abstract void updateModelToTarget()
public abstract void validateTargetToModel()
public abstract void validateModelToTarget()
public void dispose()
public boolean isDisposed()
public IObservable getTarget()
public IObservable getModel()
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.