|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
A Binding is associated to a UI component and is in charge
of synchronizing the state of that component with a given part of the model.
View| Method Summary | |
|---|---|
String |
getId()
|
void |
onBound(View owner,
Object model)
This method is called by the view to which this instance belongs when the model is first set on the view. |
void |
onChanged(View owner,
Object model)
This method is called by the view to which this instance belongs when the model is changed - the view currently has a model, but it is replaced by another instance. |
void |
onUpdated(View owner,
Object model)
This method is called by the view when its fireUpdated()
method is called. |
void |
updateModel(View owner,
Object model)
This method is called by the view when its fireUpdateModel()
method is called. |
| Method Detail |
public String getId()
public void onBound(View owner,
Object model)
owner - the View that owns the instance.model - the Object consisting of the model that
was assigned to the given view.View.setModel(Object)
public void onChanged(View owner,
Object model)
owner - the View that owns the instance.model - the Object consisting of the model that
was assigned to the given view.View.setModel(Object)
public void onUpdated(View owner,
Object model)
fireUpdated()
method is called.
owner - the View that owns the instance.model - the Object consisting of the model that
was assigned to the given view.View.fireUpdated(),
View.fireUpdateModel(String)
public void updateModel(View owner,
Object model)
fireUpdateModel()
method is called.
owner - the View that owns the instance.model - the Object consisting of the model that
was assigned to the given view.View.fireUpdateModel(),
View.fireUpdateModel(String)
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||