|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BindingContext
The BindingContext interface.
| Method Summary | |
|---|---|
BindingContext |
add(java.lang.String adapterId,
PropertyAdapter adapter)
Adds a property adapter to the context. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list for a specific property. |
BindingContext |
createChild()
Creates a new BindingContext instance and adds it as a child to this context. |
PropertyAdapter |
getAdapter(java.lang.String adapterId)
Returns the property adapter for the given adapter id. |
java.util.Set<BindingContext> |
getChilds()
Returns the child binding contexts. |
BoundControl |
getControl(java.lang.String id)
Returns the bound control that belongs to the adapter id. |
java.util.Set<BoundControl> |
getControls()
Returns all registered controls. |
Decorator |
getDecorator(java.lang.String id)
Returns the decorator for the specified binding id. |
Format |
getFormat(java.lang.String id)
Returns the format for the specified adapter. |
java.lang.Object |
getModel()
Returns the model. |
BindingContext |
getParent()
Returns the parent binding context. |
PresentationModel |
getPresentationModel()
Returns the pesentation model. |
java.util.List<PropertyAdapter> |
getPropertyAdapters()
Returns all property adapters for this context. |
ValidationHandler |
getValidationHandler()
Returns the ValidationHandler for this context. |
ValidationHandler |
getValidationHandler(java.lang.String id)
Returns the ValidationHandler for a specific binding. |
java.lang.Object |
getValue(java.lang.String id)
Returns the value for the specified adapter. |
boolean |
isDirty()
Checks if the state of any controls in this context an its sub contexts is different from the state in the model. |
boolean |
isDirty(java.lang.String id,
java.lang.Object value)
Checks if the given value equals the value in the bean. |
boolean |
isValid()
Checks if all controls in this context and the controls in its sub contexts contain valid inputs. |
void |
registerControl(java.lang.String id,
BoundControl control)
Registers a bound control at the context. |
PropertyAdapter |
remove(java.lang.String adapterId)
Removes a binding from the context. |
boolean |
removeChild(BindingContext context)
Removes a child context from this context. |
void |
removeControl(BoundControl control)
Renoves a bound control from the context. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. |
BindingContext |
setModel(java.lang.Object bean)
Sets the model to be used. |
void |
setParent(BindingContext context)
Sets the parent binding context. |
void |
setPresentationModel(PresentationModel presentationModel)
Sets the presentation model. |
BindingContext |
setValidationHandler(ValidationHandler handler)
Sets the ValidationHandler for this context. |
void |
setValue(java.lang.String id,
java.lang.Object value)
Sets the value for the specific adapter. |
void |
synchronize()
Synchronizes the GUI/screen state with the application state. |
void |
update()
Resets the GUI/screen state. |
void |
validate()
Validates this context and all its sub contexts. |
ValidationReport |
validate(java.lang.String id,
java.lang.Object value)
Checks if the value is valid for the specified adapter. |
| Methods inherited from interface java.beans.PropertyChangeListener |
|---|
propertyChange |
| Method Detail |
|---|
BindingContext add(java.lang.String adapterId,
PropertyAdapter adapter)
adapterId - the adapter idadapter - the adapter
PropertyAdapter remove(java.lang.String adapterId)
adapterId - The adapter id
java.util.List<PropertyAdapter> getPropertyAdapters()
PropertyAdapter getAdapter(java.lang.String adapterId)
adapterId - The adapter id
java.lang.Object getValue(java.lang.String id)
throws BindingException
id - the id
BindingException - the binding exception
void setValue(java.lang.String id,
java.lang.Object value)
throws BindingException
value - the valueid - the id
BindingException - the binding exception
ValidationReport validate(java.lang.String id,
java.lang.Object value)
value - the valueid - the id
Format getFormat(java.lang.String id)
id - the id
BindingContext setValidationHandler(ValidationHandler handler)
ValidationHandler for this context.
handler - the handler
ValidationHandler getValidationHandler()
ValidationHandler for this context.
ValidationHandler getValidationHandler(java.lang.String id)
ValidationHandler for a specific binding. If
no ValidationHandler exists for the binding, the
ValidationHandler of the context should be returned.
id - the id
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener- - The PropertyChangeListener to be addedlistener - the listener
void addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
listener- - The PropertyChangeListener to be addedpropertyName - the property namelistener - the listenervoid removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - -
The PropertyChangeListener to be removedjava.lang.Object getModel()
BindingContext setModel(java.lang.Object bean)
rootObject - The root object to set.bean - the bean
BindingContext createChild()
boolean removeChild(BindingContext context)
context - the context
Decorator getDecorator(java.lang.String id)
id - the id
boolean isDirty(java.lang.String id,
java.lang.Object value)
throws BindingException
value - the valueid - the id
BindingException - the binding exception
void registerControl(java.lang.String id,
BoundControl control)
control - the controlid - the adapter idvoid removeControl(BoundControl control)
control - the controlid - the adapter idBoundControl getControl(java.lang.String id)
id - The adapter id
java.util.Set<BoundControl> getControls()
void setPresentationModel(PresentationModel presentationModel)
presentationModel - the presentation modelPresentationModel getPresentationModel()
void setParent(BindingContext context)
context - The parent contextBindingContext getParent()
java.util.Set<BindingContext> getChilds()
void validate()
boolean isValid()
boolean isDirty()
void synchronize()
void update()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||