|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValidatableField
Implemented by form components that can need to be translated and validated. During render the translator is used to translated the value to a string. During rewind, the submitted value is translated back into an object by the translator and then validated.
Method Summary | |
---|---|
Translator |
getTranslator()
The Translator implementation used by this field. |
java.lang.Object |
getValidators()
Coerced into an Iterator of Validators |
java.lang.Object |
readValue()
Called during render to read the parameter that drives the value of is form component. |
void |
render(IMarkupWriter writer,
IRequestCycle cycle,
java.lang.String value)
Renders this form component using the specified value. |
void |
writeValue(java.lang.Object value)
Called during rewind to bind the successfully translated and validated value to the appropriate component parameter. |
Methods inherited from interface org.apache.tapestry.form.IFormComponent |
---|
getClientId, getDisplayName, getForm, getName, isDisabled, setName |
Methods inherited from interface org.apache.tapestry.IComponent |
---|
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainer, setId, setNamespace, setPage, setProperty |
Methods inherited from interface org.apache.tapestry.IRender |
---|
render |
Methods inherited from interface org.apache.hivemind.LocationHolder |
---|
setLocation |
Methods inherited from interface org.apache.hivemind.Locatable |
---|
getLocation |
Method Detail |
---|
java.lang.Object getValidators()
Translator getTranslator()
void render(IMarkupWriter writer, IRequestCycle cycle, java.lang.String value)
void writeValue(java.lang.Object value)
java.lang.Object readValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |