|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.binding.FieldBinding
public class FieldBinding
A two-way binding between a ModelData and Field instance. The binding will be 1-way when the bound model does not support change events.
ModelData,
Field| Constructor Summary | |
|---|---|
FieldBinding(Field field,
java.lang.String property)
Creates a new binding instance. |
|
| Method Summary | |
|---|---|
void |
bind(ModelData model)
Binds the model and field. |
Converter |
getConvertor()
Returns the bindings converter. |
Field<java.lang.Object> |
getField()
Returns the bound field. |
ModelData |
getModel()
Returns the bound model instance. |
java.lang.String |
getProperty()
Returns the model's bound property name. |
Store |
getStore()
Returns the binding's store. |
void |
setConvertor(Converter convertor)
Sets the converter which is used to translate data types when updating either the field or model. |
void |
setStore(Store<? extends ModelData> store)
Sets the store for the binding. |
void |
unbind()
Unbinds the model and field by removing all listeners. |
void |
updateField()
Updates the field's value with the model value. |
void |
updateModel()
Updates the model's value with the field value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FieldBinding(Field field,
java.lang.String property)
field - the bound field for the binding| Method Detail |
|---|
public void bind(ModelData model)
model - the model to be boundpublic Converter getConvertor()
public Field<java.lang.Object> getField()
public ModelData getModel()
public java.lang.String getProperty()
public Store getStore()
public void setConvertor(Converter convertor)
convertor - the converterpublic void setStore(Store<? extends ModelData> store)
store - the storepublic void unbind()
public void updateField()
public void updateModel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||