org.apache.cocoon.woody.binding
Class JavaScriptJXPathBinding

java.lang.Object
  extended by org.apache.cocoon.woody.binding.JXPathBindingBase
      extended by org.apache.cocoon.woody.binding.JavaScriptJXPathBinding
All Implemented Interfaces:
LogEnabled, Binding

public class JavaScriptJXPathBinding
extends JXPathBindingBase

Version:
CVS $Id: JavaScriptJXPathBinding.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Sylvain Wallez

Field Summary
 
Fields inherited from class org.apache.cocoon.woody.binding.JXPathBindingBase
classes, parent
 
Constructor Summary
JavaScriptJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts, String id, String path, org.mozilla.javascript.Script loadScript, org.mozilla.javascript.Script saveScript)
           
 
Method Summary
 void doLoad(Widget frmModel, org.apache.commons.jxpath.JXPathContext jctx)
          Performs the actual load binding regardless of the configured value of the "direction" attribute.
 void doSave(Widget frmModel, org.apache.commons.jxpath.JXPathContext jctx)
          Performs the actual save binding regardless of the configured value of the "direction" attribute.
 
Methods inherited from class org.apache.cocoon.woody.binding.JXPathBindingBase
enableLogging, getClass, getId, getLogger, getWidget, loadFormFromModel, loadFormFromModel, saveFormToModel, saveFormToModel, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptJXPathBinding

public JavaScriptJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts,
                               String id,
                               String path,
                               org.mozilla.javascript.Script loadScript,
                               org.mozilla.javascript.Script saveScript)
Method Detail

doLoad

public void doLoad(Widget frmModel,
                   org.apache.commons.jxpath.JXPathContext jctx)
Description copied from class: JXPathBindingBase
Performs the actual load binding regardless of the configured value of the "direction" attribute. Abstract method that subclasses need to implement for specific activity.

Specified by:
doLoad in class JXPathBindingBase

doSave

public void doSave(Widget frmModel,
                   org.apache.commons.jxpath.JXPathContext jctx)
            throws BindingException
Description copied from class: JXPathBindingBase
Performs the actual save binding regardless of the configured value of the "direction" attribute. Abstract method that subclasses need to implement for specific activity.

Specified by:
doSave in class JXPathBindingBase
Throws:
BindingException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.