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:
IComponent, IFormComponent, 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,v 1.2 2003/04/14 20:10:05 hlship Exp $
Author:
Howard Lewis Ship
See Also:
ValidField

Constructor Summary
DateField()
           
 
Method Summary
 IBinding getDateBinding()
          Returns the valueBinding.
 IBinding getDisplayFormatBinding()
           
 IBinding getFormatBinding()
           
 IBinding getMaximumBinding()
           
 IBinding getMinimumBinding()
           
 IBinding getRequiredBinding()
           
 IValidator getValidator()
          Overrides ValidField.getValidator() to construct a validator on-the-fly.
abstract  IBinding getValueBinding()
           
 void setDateBinding(IBinding value)
          Updates the valueBinding.
 void setDisplayFormatBinding(IBinding displayFormatBinding)
           
 void setFormatBinding(IBinding formatBinding)
           
 void setMaximumBinding(IBinding value)
           
 void setMinimumBinding(IBinding value)
           
 void setRequiredBinding(IBinding requiredBinding)
           
abstract  void setValueBinding(IBinding valueBinding)
           
 
Methods inherited from class org.apache.tapestry.valid.ValidField
beforeCloseTag, getDisplayName, getValue, readValue, renderComponent, setValue, 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

getValueBinding

public abstract IBinding getValueBinding()

setValueBinding

public abstract void setValueBinding(IBinding valueBinding)

getDateBinding

public IBinding getDateBinding()
Returns the valueBinding.

setDateBinding

public void setDateBinding(IBinding value)
Updates the valueBinding.

getValidator

public IValidator getValidator()
Overrides ValidField.getValidator() to construct a validator on-the-fly.
Overrides:
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)