|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.flow.java.AbstractContinuable org.apache.cocoon.forms.flow.java.FormInstance
public class FormInstance
Implementation of the Cocoon Forms/Java Flow integration.
Constructor Summary | |
---|---|
FormInstance(Element formDefinition)
Create a form of an fd:form element in the form of a org.w3c.dom.Element |
|
FormInstance(String uri)
Create a form, given the URI of its definition file |
|
FormInstance(String definitionFile,
String bindingFile)
Create a form, given the URI of its definition file, the binding file. |
Method Summary | |
---|---|
void |
createBinding(String bindingURI)
|
Object |
getAttribute(String name)
|
Widget |
getChild(String name)
Get a Widget (the java object) from the form. |
Widget |
getModel()
|
String |
getSubmitId()
|
void |
load(Object object)
|
void |
removeAttribute(String name)
|
void |
save(Object object)
|
void |
setAttribute(String name,
Object value)
|
void |
show(String uri)
Returns the bookmark continuation associated with this form, or undefined if setBookmark() has not been called. |
void |
show(String uri,
Object bizData)
Manages the display of a form and its validation. |
Methods inherited from class org.apache.cocoon.components.flow.java.AbstractContinuable |
---|
getComponent, getContext, getLogger, getObjectModel, getParameters, getRequest, processPipelineTo, redirectTo, releaseComponent, sendPage, sendPage, sendPageAndWait, sendPageAndWait, sendStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormInstance(String uri)
public FormInstance(String definitionFile, String bindingFile)
public FormInstance(Element formDefinition)
Method Detail |
---|
public Widget getModel()
public Widget getChild(String name)
name
is undefined, the form widget itself is returned.
Otherwise, the form's child widget of name name
is returned.
public String getSubmitId()
public void show(String uri)
public void show(String uri, Object bizData)
uri
- the page uri (like in cocoon.sendPageAndWait())bizData
- some business data for the view (like in cocoon.sendPageAndWait()).
The "{FormsPipelineConfig.CFORMSKEY}" and "locale" properties are added to this object.public void createBinding(String bindingURI)
public void load(Object object)
public void save(Object object)
public void setAttribute(String name, Object value)
public Object getAttribute(String name)
public void removeAttribute(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |