|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.form.AbstractFormComponent
org.apache.tapestry.valid.ValidField
org.apache.tapestry.contrib.valid.NumericField
public abstract class NumericField
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.
ValidField
Field Summary |
---|
Fields inherited from class org.apache.tapestry.AbstractComponent |
---|
_body, _bodyCount |
Constructor Summary | |
---|---|
NumericField()
|
Method Summary | |
---|---|
abstract Number |
getMaximum()
|
abstract Number |
getMinimum()
|
abstract String |
getType()
|
IValidator |
getValidator()
Overrides ValidField.getValidator() to construct a validator on
the fly. |
abstract boolean |
isRequired()
Returns false. |
Methods inherited from class org.apache.tapestry.valid.ValidField |
---|
getDisplayName, getValue, isDisabled, isHidden, readValue, renderFormComponent, rewindFormComponent, setValue, updateValue |
Methods inherited from class org.apache.tapestry.form.AbstractFormComponent |
---|
generateClientId, getCanTakeFocus, getForm, getIdParameter, getName, getRenderBodyOnRewind, peekClientId, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, setForm, setName, setName |
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
---|
getLocation, setLocation |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.tapestry.form.IFormComponent |
---|
getClientId |
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 |
Constructor Detail |
---|
public NumericField()
Method Detail |
---|
public abstract Number getMinimum()
public abstract Number getMaximum()
public abstract boolean isRequired()
AbstractFormComponent
isRequired
in interface IFormComponent
isRequired
in class AbstractFormComponent
public abstract String getType()
public IValidator getValidator()
ValidField.getValidator()
to construct a validator on
the fly.
getValidator
in class ValidField
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |