org.apache.tapestry.valid
Class ValidField
java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.form.AbstractFormComponent
org.apache.tapestry.valid.ValidField
- All Implemented Interfaces:
- org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, IFormComponent, IComponent, IDirectEvent, Component, IRender
- Direct Known Subclasses:
- DateField, NumericField, ValidatingTextField
public abstract class ValidField
- extends AbstractFormComponent
A Form
component that creates a text field that allows for validation
of user input and conversion between string and object values. [ Component Reference
]
A ValidatingTextField uses an IValidationDelegate
to track errors and
an IValidator
to convert between strings and objects (as well as
perform validations). The validation delegate is shared by all validating
text fields in a form, the validator may be shared my multiple elements as
desired.
- Author:
- Howard Lewis Ship
Methods inherited from class org.apache.tapestry.form.AbstractFormComponent |
generateClientId, getCanTakeFocus, getForm, getIdParameter, getName, getRenderBodyOnRewind, isRequired, peekClientId, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, setForm, setName, setName |
Methods inherited from class org.apache.tapestry.AbstractComponent |
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, equals, finishLoad, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainedRenderers, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getInnerRenderers, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hasEvents, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setHasEvents, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent |
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
getLocation, setLocation |
Methods inherited from interface org.apache.tapestry.IComponent |
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName |
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 |
ValidField
public ValidField()
isHidden
public abstract boolean isHidden()
isDisabled
public abstract boolean isDisabled()
- Description copied from interface:
IFormComponent
- Returns true if the component is disabled. This is important when the containing form is
submitted, since disabled parameters do not update their bindings.
getValue
public abstract Object getValue()
setValue
public abstract void setValue(Object value)
getDisplayName
public abstract String getDisplayName()
- Parameter.
renderFormComponent
protected void renderFormComponent(IMarkupWriter writer,
IRequestCycle cycle)
- Description copied from class:
AbstractFormComponent
- Invoked from
AbstractFormComponent.renderComponent(IMarkupWriter, IRequestCycle)
to render the component.
- Specified by:
renderFormComponent
in class AbstractFormComponent
- See Also:
AbstractFormComponent.renderFormComponent(org.apache.tapestry.IMarkupWriter,
org.apache.tapestry.IRequestCycle)
rewindFormComponent
protected void rewindFormComponent(IMarkupWriter writer,
IRequestCycle cycle)
- Description copied from class:
AbstractFormComponent
- Invoked from
AbstractFormComponent.renderComponent(IMarkupWriter, IRequestCycle)
to rewind the
component. If the component is disabled
this will not be invoked.
- Specified by:
rewindFormComponent
in class AbstractFormComponent
- See Also:
AbstractFormComponent.rewindFormComponent(org.apache.tapestry.IMarkupWriter,
org.apache.tapestry.IRequestCycle)
readValue
protected String readValue()
updateValue
protected void updateValue(String value)
getValidator
public abstract IValidator getValidator()
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.