|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.woody.binding.JXPathBindingBase org.apache.cocoon.woody.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.woody.binding.JXPathBindingBase |
---|
classes, parent |
Constructor Summary | |
---|---|
RepeaterJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts,
String repeaterId,
String repeaterPath,
String rowPath,
String rowPathForInsert,
String uniqueRowId,
String uniqueRowPath,
Convertor convertor,
Locale convertorLocale,
JXPathBindingBase[] childBindings,
JXPathBindingBase insertBinding,
JXPathBindingBase[] deleteBindings,
JXPathBindingBase[] uniqueBindings)
Constructs RepeaterJXPathBinding |
|
RepeaterJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts,
String repeaterId,
String repeaterPath,
String rowPath,
String rowPathForInsert,
String uniqueRowId,
String uniqueRowPath,
JXPathBindingBase[] childBindings,
JXPathBindingBase insertBinding,
JXPathBindingBase[] deleteBindings,
JXPathBindingBase[] uniqueBindings)
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 unique-id of each row to detect if rows have been updated, inserted or removed. |
void |
enableLogging(Logger logger)
Receives the Avalon logger to use. |
String |
toString()
|
Methods inherited from class org.apache.cocoon.woody.binding.JXPathBindingBase |
---|
getClass, getId, getLogger, getWidget, loadFormFromModel, loadFormFromModel, saveFormToModel, saveFormToModel, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RepeaterJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts, String repeaterId, String repeaterPath, String rowPath, String rowPathForInsert, String uniqueRowId, String uniqueRowPath, JXPathBindingBase[] childBindings, JXPathBindingBase insertBinding, JXPathBindingBase[] deleteBindings, JXPathBindingBase[] uniqueBindings)
public RepeaterJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts, String repeaterId, String repeaterPath, String rowPath, String rowPathForInsert, String uniqueRowId, String uniqueRowPath, Convertor convertor, Locale convertorLocale, JXPathBindingBase[] childBindings, JXPathBindingBase insertBinding, JXPathBindingBase[] deleteBindings, JXPathBindingBase[] uniqueBindings)
Method Detail |
---|
public void doLoad(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc) throws BindingException
doLoad
in class JXPathBindingBase
BindingException
public void doSave(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc) throws BindingException
doSave
in class JXPathBindingBase
BindingException
public String toString()
toString
in class Object
public void enableLogging(Logger logger)
JXPathBindingBase
super.enableLogging(logger)
in possible overriding versions.
enableLogging
in interface LogEnabled
enableLogging
in class JXPathBindingBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |