|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.forms.binding.JXPathBindingBase
org.apache.cocoon.forms.binding.RepeaterJXPathBinding
public class RepeaterJXPathBinding
RepeaterJXPathBinding provides an implementation of a Binding
that allows for bidirectional binding of a repeater-widget to/from
repeating structures in the back-end object model.
| Field Summary |
|---|
| Fields inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase |
|---|
classes, parent |
| Constructor Summary | |
|---|---|
RepeaterJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts,
String repeaterId,
String repeaterPath,
String rowPath,
String rowPathForInsert,
JXPathBindingBase[] childBindings,
JXPathBindingBase insertBinding,
JXPathBindingBase[] deleteBindings,
JXPathBindingBase[] identityBindings)
Constructs RepeaterJXPathBinding |
|
| Method Summary | |
|---|---|
void |
doLoad(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
Binds the unique-id of the repeated rows, and narrows the context on objectModelContext and Repeater to the repeated rows before handing over to the actual binding-children. |
void |
doSave(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
Uses the mapped identity of each row to detect if rows have been updated, inserted or removed. |
void |
enableLogging(Logger logger)
|
ComposedJXPathBindingBase |
getDeleteRowBinding()
|
String |
getId()
Returns binding definition id. |
protected List |
getIdentity(org.apache.commons.jxpath.JXPathContext rowContext)
Get the identity of the given row context. |
protected List |
getIdentity(Repeater.RepeaterRow row)
Get the identity of the given row. |
ComposedJXPathBindingBase |
getIdentityBinding()
|
JXPathBindingBase |
getInsertRowBinding()
|
String |
getInsertRowPath()
|
String |
getRepeaterPath()
|
ComposedJXPathBindingBase |
getRowBinding()
|
String |
getRowPath()
|
protected boolean |
hasNonNullElements(List list)
Tests if any of the elements in a List is not null. |
String |
toString()
|
| Methods inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase |
|---|
getClass, getCommonAtts, getEnclosingLibrary, getLocation, isValid, loadFormFromModel, loadFormFromModel, saveFormToModel, saveFormToModel, selectWidget, setEnclosingLibrary, setParent |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RepeaterJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts,
String repeaterId,
String repeaterPath,
String rowPath,
String rowPathForInsert,
JXPathBindingBase[] childBindings,
JXPathBindingBase insertBinding,
JXPathBindingBase[] deleteBindings,
JXPathBindingBase[] identityBindings)
| Method Detail |
|---|
public void enableLogging(Logger logger)
enableLogging in interface LogEnabledenableLogging in class AbstractLogEnabledpublic String getId()
JXPathBindingBase
getId in interface BindinggetId in class JXPathBindingBasepublic String getRepeaterPath()
public String getRowPath()
public String getInsertRowPath()
public ComposedJXPathBindingBase getRowBinding()
public ComposedJXPathBindingBase getDeleteRowBinding()
public ComposedJXPathBindingBase getIdentityBinding()
public JXPathBindingBase getInsertRowBinding()
public void doLoad(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
throws BindingException
doLoad in class JXPathBindingBaseBindingException
public void doSave(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
throws BindingException
doSave in class JXPathBindingBaseBindingExceptionprotected boolean hasNonNullElements(List list)
list - protected List getIdentity(org.apache.commons.jxpath.JXPathContext rowContext)
rowContext -
protected List getIdentity(Repeater.RepeaterRow row)
row -
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||