|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.forms.binding.AbstractCustomBinding
AbstractCustomBinding
Constructor Summary | |
AbstractCustomBinding()
|
Method Summary | |
protected abstract void |
doLoad(Widget frmModel,
org.apache.commons.jxpath.JXPathContext context)
|
protected abstract void |
doSave(Widget frmModel,
org.apache.commons.jxpath.JXPathContext context)
|
Binding |
getClass(String id)
Gets a binding class. |
String |
getId()
Returns binding definition id. |
Library |
getLocalLibrary()
returns the local library for this tree of bindings |
boolean |
isValid()
checks for deep validity of this binding tree (taking into accound included libraries) |
void |
loadFormFromModel(Widget frmModel,
Object objModel)
Binding service method called upon loading. |
void |
saveFormToModel(Widget frmModel,
Object objModel)
Binding service method called upon saving. |
void |
setParent(Binding binding)
Sets parent binding. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractCustomBinding()
Method Detail |
public void setParent(Binding binding)
setParent
in interface Binding
binding
- Parent of this binding.public String getId()
getId
in interface Binding
public Binding getClass(String id)
Binding
getClass
in interface Binding
id
- Id of binding class to get.public boolean isValid()
Binding
isValid
in interface Binding
public Library getLocalLibrary()
Binding
getLocalLibrary
in interface Binding
public final void loadFormFromModel(Widget frmModel, Object objModel) throws BindingException
doLoad(Widget, JXPathContext)
loadFormFromModel
in interface Binding
frmModel
- objModel
-
BindingException
public final void saveFormToModel(Widget frmModel, Object objModel) throws BindingException
doSave(Widget, JXPathContext)
saveFormToModel
in interface Binding
frmModel
- objModel
-
BindingException
protected abstract void doLoad(Widget frmModel, org.apache.commons.jxpath.JXPathContext context) throws Exception
frmModel
- context
-
Exception
protected abstract void doSave(Widget frmModel, org.apache.commons.jxpath.JXPathContext context) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |