public abstract class NumericField extends org.apache.tapestry.valid.ValidField
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.
ValidField
Constructor and Description |
---|
NumericField() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Number |
getMaximum() |
abstract java.lang.Number |
getMinimum() |
abstract java.lang.String |
getType() |
org.apache.tapestry.valid.IValidator |
getValidator()
Overrides
ValidField.getValidator() to construct a validator on the fly. |
abstract boolean |
isRequired() |
getDisplayName, getValue, isDisabled, isHidden, readValue, renderFormComponent, rewindFormComponent, setValue, updateValue
getAlwaysRenderBodyOnRewind, getCanTakeFocus, getForm, getIdParameter, getName, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, renderIdAttribute, setClientId, setForm, setName, setName
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty
public NumericField()
public abstract java.lang.Number getMinimum()
public abstract java.lang.Number getMaximum()
public abstract boolean isRequired()
isRequired
in interface org.apache.tapestry.form.IFormComponent
isRequired
in class org.apache.tapestry.form.AbstractFormComponent
public abstract java.lang.String getType()
public org.apache.tapestry.valid.IValidator getValidator()
ValidField.getValidator()
to construct a validator on the fly.getValidator
in class org.apache.tapestry.valid.ValidField