|
||||||||||
| 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(String initializer)
|
|
| Method Summary | |
|---|---|
void |
accumulateProfileProperty(IFormComponent field,
JSONObject profile,
String key,
Object property)
Utility method to store a field specific profile property which can later be used by client side validation. |
void |
accumulateProperty(JSONObject profile,
String key,
Object value)
Utility used to append onto an existing property represented as an object array. |
String |
defaultScript()
Defines the default JavaScript file used by this contributor. |
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(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(String initializer)
| Method Detail |
|---|
public String defaultScript()
public String getScript()
public void setScript(String script)
public void renderContribution(IMarkupWriter writer,
IRequestCycle cycle,
FormComponentContributorContext context,
IFormComponent field)
FormComponentContributor
renderContribution in interface FormComponentContributorwriter - 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)
public void accumulateProperty(JSONObject profile,
String key,
Object value)
profile - key - value -
public void accumulateProfileProperty(IFormComponent field,
JSONObject profile,
String key,
Object property)
field - The field to store the property for, will key off of IFormComponent.getClientId().profile - The profile for the form.key - The property key to store.property - The property to store.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||