|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.binding.Bindings
com.extjs.gxt.ui.client.binding.FormBinding
public class FormBinding
A Bindings subclass for forms.
| Field Summary | |
|---|---|
protected FormPanel |
panel
|
protected Store |
store
|
protected boolean |
updateOriginalValue
|
| Fields inherited from class com.extjs.gxt.ui.client.binding.Bindings |
|---|
bindings, model |
| Constructor Summary | |
|---|---|
FormBinding(FormPanel panel)
Creates a new form binding instance. |
|
FormBinding(FormPanel panel,
boolean autoBind)
Creates a new form binding instance. |
|
| Method Summary | |
|---|---|
void |
autoBind()
Searches the form's fields, and adds a binding to and field without a binding. |
void |
bind(ModelData model)
Binds the model instance. |
Store |
getStore()
Returns the form binding's store. |
boolean |
isUpdateOriginalValue()
Returns true if the field's original value are updated when the field is bound. |
void |
setStore(Store store)
Sets the form binding's store. |
void |
setUpdateOriginalValue(boolean update)
True to update the field's original value when bound (defaults to false). |
| Methods inherited from class com.extjs.gxt.ui.client.binding.Bindings |
|---|
addFieldBinding, clear, getBinding, getBindings, getModel, removeFieldBinding, unbind |
| Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
|---|
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FormPanel panel
protected Store store
protected boolean updateOriginalValue
| Constructor Detail |
|---|
public FormBinding(FormPanel panel)
panel - the form panel
public FormBinding(FormPanel panel,
boolean autoBind)
panel - the form panelautoBind - true to automatically add field bindings based on the forms
field names| Method Detail |
|---|
public void autoBind()
public void bind(ModelData model)
Bindings
bind in class Bindingsmodel - the modelpublic Store getStore()
public boolean isUpdateOriginalValue()
public void setStore(Store store)
store - the storepublic void setUpdateOriginalValue(boolean update)
update - true to update the original value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||