org.apache.tapestry.contrib.valid
Class DateField

java.lang.Object
  extended by org.apache.tapestry.spec.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.form.AbstractFormComponent
              extended by org.apache.tapestry.form.AbstractTextField
                  extended by org.apache.tapestry.valid.ValidField
                      extended by 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

Constructor Summary
DateField()
           
 
Method Summary
abstract  Date getDate()
           
 IBinding getDisplayFormatBinding()
           
 IBinding getFormatBinding()
           
 IBinding getMaximumBinding()
           
 IBinding getMinimumBinding()
           
 IBinding getRequiredBinding()
           
 IValidator getValidator()
          Overrides ValidField.getValidator() to construct a validator on-the-fly.
 Object getValue()
           
abstract  void setDate(Date date)
           
 void setDisplayFormatBinding(IBinding displayFormatBinding)
           
 void setFormatBinding(IBinding formatBinding)
           
 void setMaximumBinding(IBinding value)
           
 void setMinimumBinding(IBinding value)
           
 void setRequiredBinding(IBinding requiredBinding)
           
 void setValue(Object value)
           
 
Methods inherited from class org.apache.tapestry.valid.ValidField
addSelect, beforeCloseTag, getDisplayName, readValue, renderComponent, updateValue
 
Methods inherited from class org.apache.tapestry.form.AbstractTextField
isDisabled, isHidden
 
Methods inherited from class org.apache.tapestry.form.AbstractFormComponent
getForm, getForm, getName, setForm, setName
 
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 class org.apache.tapestry.spec.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.form.IFormComponent
getForm, getName, isDisabled, setName
 
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
 
Methods inherited from interface org.apache.tapestry.ILocationHolder
setLocation
 
Methods inherited from interface org.apache.tapestry.ILocatable
getLocation
 

Constructor Detail

DateField

public DateField()
Method Detail

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)