|
|||||||||
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
public class Bindings
Aggregates one to many field bindings.
FieldBinding
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,FieldBinding> |
bindings
|
protected ModelData |
model
|
Constructor Summary | |
---|---|
Bindings()
Creates a new bindings instance. |
Method Summary | |
---|---|
void |
addFieldBinding(FieldBinding binding)
Adds a field binding. |
void |
bind(ModelData model)
Binds the model instance. |
void |
clear()
Clears all fields by setting the value for each field to null . |
FieldBinding |
getBinding(Field<?> field)
Returns the field binding for the given field. |
java.util.Collection<FieldBinding> |
getBindings()
Returns all bindings. |
ModelData |
getModel()
Returns the currently bound model; |
void |
removeFieldBinding(FieldBinding binding)
Removes a field binding. |
void |
unbind()
Unbinds the current model. |
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 ModelData model
protected java.util.Map<java.lang.String,FieldBinding> bindings
Constructor Detail |
---|
public Bindings()
Method Detail |
---|
public void addFieldBinding(FieldBinding binding)
binding
- the binding instance to addpublic void bind(ModelData model)
model
- the modelpublic void clear()
null
.
public FieldBinding getBinding(Field<?> field)
field
- the field
public java.util.Collection<FieldBinding> getBindings()
public ModelData getModel()
public void removeFieldBinding(FieldBinding binding)
binding
- the binding instance to removepublic void unbind()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |