|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object incubator.net.xoetrope.xui.XDataBindingContext
public class XDataBindingContext
A class used by XPage to manage the data binding coordination
Copyright (c) Xoetrope Ltd., 2002-2005
License: see license.txt
$Revision: 1.1 $Field Summary | |
---|---|
protected XPathEvaluator |
evaluator |
java.util.Vector |
modelBindings Vector of XDataBinding Objects currently in use by the XPage |
Constructor Summary | |
---|---|
XDataBindingContext(XPathEvaluator pathEvaluator) Creates a new instance of XDataBindingContext |
Method Summary | |
---|---|
void |
addBinding(XDataBinding b, boolean doGet) Add a binding of a component to the data model. |
XDataBinding |
getBinding(java.lang.Object targetComp) Find the data binding associated with a component |
XDataBinding |
getBinding(java.lang.String targetPath) Find the data binding associated with a data source path |
java.util.Vector |
getBindings() Retrieve the Vector of XDataBinding for the XPage |
void |
removeBinding(XDataBinding b) Remove a binding of a component to the data model. |
void |
saveBoundComponentValues() Save the component values to the model |
void |
updateBinding(XDataBinding binding) Update the bound model node for the binding. |
void |
updateBindings() Iterate all of the bindings in the page to reflect the model state. |
void |
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 XPathEvaluator evaluator
Constructor Detail |
---|
public XDataBindingContext(XPathEvaluator pathEvaluator)
Method Detail |
---|
public java.util.Vector getBindings()
public void addBinding(XDataBinding b, boolean doGet)
b
- the binding "param doGet do a get on the binding once it has been addedpublic void removeBinding(XDataBinding b)
b
- the bindingpublic void updateBindings()
public void updateBinding(XDataBinding binding)
binding
- The databinding to be updatedpublic void updateBoundComponentValues()
public void saveBoundComponentValues()
public XDataBinding getBinding(java.lang.Object targetComp)
targetComp
- the component whose binding is requiredpublic XDataBinding getBinding(java.lang.String targetPath)
targetPath
- the path to the bound model
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |