org.apache.tapestry.form
Class TextArea
java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.form.AbstractFormComponent
org.apache.tapestry.form.AbstractValidatableField
org.apache.tapestry.form.TextArea
- All Implemented Interfaces:
- org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, IFormComponent, ValidatableField, IComponent, IRender
public abstract class TextArea
- extends AbstractValidatableField
Implements a component that manages an HTML <textarea> form element.
[Component Reference]
As of 4.0, TextField can indicate that it is required, use a custom translator,
and perform validation on the submitted text.
- Author:
- Howard Lewis Ship, Paul Ferraro
Method Summary |
abstract java.lang.String |
getValue()
|
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. |
abstract void |
setValue(java.lang.String 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 class org.apache.tapestry.form.AbstractFormComponent |
getForm, getIdParameter, getName, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, renderIdAttribute, select, setClientId, setForm, setName, setName |
Methods inherited from class org.apache.tapestry.AbstractComponent |
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainer, setId, setNamespace, setPage, setProperty, toString |
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
getLocation, setLocation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 |
TextArea
public TextArea()
getValue
public abstract java.lang.String getValue()
setValue
public abstract void setValue(java.lang.String value)
render
public void render(IMarkupWriter writer,
IRequestCycle cycle,
java.lang.String value)
- Description copied from interface:
ValidatableField
- Renders this form component using the specified value.
- See Also:
org.apache.tapestry.form.validator.AbstractValidatableField#render(org.apache.tapestry.IMarkupWriter, org.apache.tapestry.IRequestCycle, java.lang.String)
writeValue
public void writeValue(java.lang.Object value)
- Description copied from interface:
ValidatableField
- Called during rewind to bind the successfully translated and validated value to the
appropriate component parameter.
- See Also:
ValidatableField.writeValue(java.lang.Object)
readValue
public java.lang.Object readValue()
- Description copied from interface:
ValidatableField
- Called during render to read the parameter that drives the value of is form component.
- See Also:
ValidatableField.readValue()