|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.form.AbstractFormComponentContributor
public abstract class AbstractFormComponentContributor
Abstract FormComponentContributor
implementation that adds an optional static
javscript method reference to the page.
Constructor Summary | |
---|---|
AbstractFormComponentContributor()
|
|
AbstractFormComponentContributor(java.lang.String initializer)
|
Method Summary | |
---|---|
protected void |
addSubmitHandler(IForm form,
java.lang.String handler)
Helper method that adds the specified submit handler to to the specified form. |
protected java.lang.String |
defaultScript()
Defines the default JavaScript file used by this contributor. |
java.lang.String |
getScript()
|
void |
renderContribution(IMarkupWriter writer,
IRequestCycle cycle,
FormComponentContributorContext context,
IFormComponent field)
Invoked by a form component after it finishes rendering its tag (but before the tag is closed) to allow this object to contribute to the component's rendering process. |
void |
setScript(java.lang.String script)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractFormComponentContributor()
public AbstractFormComponentContributor(java.lang.String initializer)
Method Detail |
---|
protected java.lang.String defaultScript()
public java.lang.String getScript()
public void setScript(java.lang.String script)
public void renderContribution(IMarkupWriter writer, IRequestCycle cycle, FormComponentContributorContext context, IFormComponent field)
FormComponentContributor
renderContribution
in interface FormComponentContributor
writer
- allows contributor to write additional attributes into the component's tagcycle
- for accessing request informationcontext
- utilities for genering messages and client-side validationfield
- the field for which contributions are being renderedFormComponentContributor.renderContribution(org.apache.tapestry.IMarkupWriter, org.apache.tapestry.IRequestCycle, FormComponentContributorContext, org.apache.tapestry.form.IFormComponent)
protected void addSubmitHandler(IForm form, java.lang.String handler)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |