org.apache.tapestry.contrib.valid
Class NumericField
java.lang.Object
org.apache.tapestry.spec.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.form.AbstractFormComponent
org.apache.tapestry.form.AbstractTextField
org.apache.tapestry.valid.ValidField
org.apache.tapestry.contrib.valid.NumericField
- All Implemented Interfaces:
- IFormComponent, IComponent, ILocatable, ILocationHolder, IRender
public abstract class NumericField
- extends ValidField
Backwards compatible version of the 1.0.7 NumericField component.
Parameter |
Type |
Read / Write |
Required |
Default |
Description |
value |
Number |
R / W |
yes |
|
The value to be updated.
When the form is submitted, this parameter is only updated if the value
is valid.
When rendering, a null value will render as the empty string. A value
of zero will render normally.
When the form is submitted, the type of the binding
is used to determine what kind of object to convert the string to.
|
minimum |
Number |
R |
no |
|
The minimum value accepted for the field. |
maximum |
Number |
R |
no |
|
The maximum value accepted for the field. |
required |
boolean |
R |
no |
false |
If true, then a non-null value must be provided. If the field is not
required, and a null (all whitespace) value is supplied in the field, then the
value parameter is not updated. |
displayName |
String |
R |
yes |
|
A textual name for the field that is used when formulating error messages.
|
type |
String |
R |
yes |
|
The class name used to convert the value entered. See NumberValidator.setValueType(String)
|
May not contain a body. May have informal parameters.
- Since:
- 1.0.8
- Version:
- $Id: NumericField.java 243791 2004-02-19 17:38:13Z hlship $
- Author:
- Howard Lewis Ship
- See Also:
ValidField
Methods inherited from class org.apache.tapestry.AbstractComponent |
addAsset, addBody, addComponent, cleanupAfterRender, finishLoad, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, format, format, format, format, formatString, formatString, formatString, formatString, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getChangeObserver, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification, toString |
Methods inherited from interface org.apache.tapestry.IComponent |
addAsset, addBody, addComponent, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, renderBody, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification |
Methods inherited from interface org.apache.tapestry.IRender |
render |
NumericField
public NumericField()
getMinimumBinding
public IBinding getMinimumBinding()
setMinimumBinding
public void setMinimumBinding(IBinding value)
getMaximumBinding
public IBinding getMaximumBinding()
setMaximumBinding
public void setMaximumBinding(IBinding value)
getRequiredBinding
public IBinding getRequiredBinding()
setRequiredBinding
public void setRequiredBinding(IBinding requiredBinding)
getTypeBinding
public IBinding getTypeBinding()
setTypeBinding
public void setTypeBinding(IBinding typeNameBinding)
getValidator
public IValidator getValidator()
- Overrides
ValidField.getValidator()
to construct
a validator on the fly.
- Specified by:
getValidator
in class ValidField