org.apache.tapestry.contrib.valid
Class DateField
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.DateField
- All Implemented Interfaces:
- IFormComponent, IComponent, ILocatable, ILocationHolder, IRender
public abstract class DateField
- extends ValidField
Backwards compatible version of the 1.0.7 DateField component.
Parameter |
Type |
Read / Write |
Required |
Default |
Description |
date |
java.util.Date |
R / W |
yes |
|
The date property to edit. |
required |
boolean |
R |
no |
no |
If true, then a value must be entered. |
minimum |
java.util.Date |
R |
no |
|
If provided, the date entered must be equal to or later than the
provided minimum date. |
maximum |
java.util.Date |
R |
no |
|
If provided, the date entered must be less than or equal to the
provided maximum date. |
displayName |
String |
R |
yes |
|
A textual name for the field that is used when formulating error messages.
|
format |
DateFormat |
R |
no |
Default format MM/dd/yyyy |
The format used to display and parse dates. |
displayFormat |
String |
R |
no |
MM/DD/YYYY |
The format string presented to the user if the date entered is in an
incorrect format. e.g. the format object throws a ParseException. |
Informal parameters are allowed. A body is not allowed.
- Since:
- 1.0.8
- Version:
- $Id: DateField.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 |
DateField
public DateField()
getDate
public abstract Date getDate()
setDate
public abstract void setDate(Date date)
getValidator
public IValidator getValidator()
- Overrides
ValidField.getValidator()
to construct a validator
on-the-fly.
- Specified by:
getValidator
in class ValidField
getRequiredBinding
public IBinding getRequiredBinding()
setRequiredBinding
public void setRequiredBinding(IBinding requiredBinding)
getFormatBinding
public IBinding getFormatBinding()
setFormatBinding
public void setFormatBinding(IBinding formatBinding)
getDisplayFormatBinding
public IBinding getDisplayFormatBinding()
setDisplayFormatBinding
public void setDisplayFormatBinding(IBinding displayFormatBinding)
getMinimumBinding
public IBinding getMinimumBinding()
setMinimumBinding
public void setMinimumBinding(IBinding value)
getMaximumBinding
public IBinding getMaximumBinding()
setMaximumBinding
public void setMaximumBinding(IBinding value)
getValue
public Object getValue()
- Specified by:
getValue
in class ValidField
- See Also:
ValidField.getValue()
setValue
public void setValue(Object value)
- Specified by:
setValue
in class ValidField
- See Also:
ValidField.setValue(java.lang.Object)