public abstract class AbstractFormComponentContributor extends java.lang.Object implements FormComponentContributor
FormComponentContributor
implementation that adds an optional static javscript
method reference to the page.Constructor and Description |
---|
AbstractFormComponentContributor() |
AbstractFormComponentContributor(java.lang.String initializer) |
Modifier and Type | Method and Description |
---|---|
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) |
public AbstractFormComponentContributor()
public AbstractFormComponentContributor(java.lang.String initializer)
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)