|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.aria.DataBindingContext
public class DataBindingContext
A class used by Page to manage the data binding coordination
Copyright (c) Formaria Ltd., 2008
License: see license.txt
$Revision: 1.1 $
| Field Summary | |
|---|---|
protected PathEvaluator |
evaluator
|
java.util.Vector |
modelBindings
Vector of DataBinding Objects currently in use by the Page |
| Constructor Summary | |
|---|---|
DataBindingContext(DataBindingContext parent,
PathEvaluator pathEvaluator)
Creates a new instance of DataBindingContext |
|
| Method Summary | |
|---|---|
void |
addBinding(DataBinding b,
boolean doGet)
Add a binding of a component to the data model. |
void |
addBindingContext(DataBindingContext context)
Add a binding context to the data model. |
DataBinding |
getBinding(java.lang.Object targetComp)
Find the data binding associated with a component |
DataBinding |
getBinding(java.lang.String targetPath)
Find the data binding associated with a data source path |
java.util.Vector |
getBindings()
Retrieve the Vector of DataBinding for the Page |
DataBindingContext |
getParent()
Get the parent data binding context or null if none exists (as in the case of the root context). |
void |
removeBinding(DataBinding b)
Remove a binding of a component to the data model. |
int |
saveBoundComponentValues()
Save the component values to the model |
void |
updateBinding(DataBinding binding)
Update the bound model node for the binding. |
int |
updateBindings()
Iterate all of the bindings in the page to reflect the model state. |
int |
updateBoundComponentValues()
Update the UI with values from the model |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.Vector modelBindings
protected PathEvaluator evaluator
| Constructor Detail |
|---|
public DataBindingContext(DataBindingContext parent,
PathEvaluator pathEvaluator)
| Method Detail |
|---|
public java.util.Vector getBindings()
public void addBinding(DataBinding b,
boolean doGet)
b - the binding
"param doGet do a get on the binding once it has been addedpublic void addBindingContext(DataBindingContext context)
context - the binding contextpublic void removeBinding(DataBinding b)
b - the bindingpublic int updateBindings()
public void updateBinding(DataBinding binding)
binding - The databinding to be updatedpublic int updateBoundComponentValues()
public int saveBoundComponentValues()
public DataBinding getBinding(java.lang.Object targetComp)
targetComp - the component whose binding is required
public DataBinding getBinding(java.lang.String targetPath)
targetPath - the path to the bound model
public DataBindingContext getParent()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||