net.sf.tacos.ajax.components
Class DatePicker

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.form.AbstractFormComponent
              extended by net.sf.tacos.ajax.components.DatePicker
All Implemented Interfaces:
Locatable, LocationHolder, org.apache.tapestry.form.IFormComponent, org.apache.tapestry.form.TranslatedField, org.apache.tapestry.form.ValidatableField, org.apache.tapestry.IComponent, org.apache.tapestry.IRender

public abstract class DatePicker
extends org.apache.tapestry.form.AbstractFormComponent
implements org.apache.tapestry.form.TranslatedField

Provides a Form java.util.Date field component for selecting dates. [ Component Reference ] As of 4.0, DatePicker can indicate that it is required, use a custom translator (e.g. for java.sql.Date), and perform validation on the submitted date.

As of 4.0, this component can be configurably translated and validated.

Since:
2.2
Author:
Paul Geerts, Malcolm Edgar, Paul Ferraro

Constructor Summary
DatePicker()
           
 
Method Summary
protected  void finishLoad()
           
abstract  AjaxWebRequest getAjaxWebRequest()
          Injected ajax request
abstract  org.apache.tapestry.IAsset getIcon()
          gets icon
abstract  boolean getIncludeWeek()
          should include week
abstract  org.apache.tapestry.engine.IScriptSource getScriptSource()
          Injected
abstract  org.apache.tapestry.form.TranslatedFieldSupport getTranslatedFieldSupport()
          Injected.
abstract  org.apache.tapestry.form.ValidatableFieldSupport getValidatableFieldSupport()
          Injected.
abstract  Date getValue()
          gets value
abstract  boolean isDisabled()
          whether disabled
 boolean isRequired()
           
protected  void renderFormComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
           
protected  void rewindFormComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
           
abstract  void setValue(Date value)
          sets value
 
Methods inherited from class org.apache.tapestry.form.AbstractFormComponent
getAlwaysRenderBodyOnRewind, getCanTakeFocus, getForm, getIdParameter, getName, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, renderIdAttribute, setClientId, setForm, setName, setName
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, 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
 
Methods inherited from class org.apache.hivemind.impl.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.TranslatedField
getTranslator
 
Methods inherited from interface org.apache.tapestry.form.ValidatableField
getValidators
 
Methods inherited from interface org.apache.tapestry.form.IFormComponent
getClientId, getDisplayName, getForm, getName, setName
 
Methods inherited from interface org.apache.tapestry.IComponent
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
 
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

DatePicker

public DatePicker()
Method Detail

getValue

public abstract Date getValue()
gets value


setValue

public abstract void setValue(Date value)
sets value


isDisabled

public abstract boolean isDisabled()
whether disabled

Specified by:
isDisabled in interface org.apache.tapestry.form.IFormComponent

getIncludeWeek

public abstract boolean getIncludeWeek()
should include week


getIcon

public abstract org.apache.tapestry.IAsset getIcon()
gets icon


getScriptSource

public abstract org.apache.tapestry.engine.IScriptSource getScriptSource()
Injected

Since:
4.0

finishLoad

protected void finishLoad()
Overrides:
finishLoad in class org.apache.tapestry.AbstractComponent
See Also:
AbstractComponent.finishLoad()

renderFormComponent

protected void renderFormComponent(org.apache.tapestry.IMarkupWriter writer,
                                   org.apache.tapestry.IRequestCycle cycle)
Specified by:
renderFormComponent in class org.apache.tapestry.form.AbstractFormComponent
See Also:
AbstractFormComponent.renderFormComponent(org.apache.tapestry.IMarkupWriter, org.apache.tapestry.IRequestCycle)

rewindFormComponent

protected void rewindFormComponent(org.apache.tapestry.IMarkupWriter writer,
                                   org.apache.tapestry.IRequestCycle cycle)
Specified by:
rewindFormComponent in class org.apache.tapestry.form.AbstractFormComponent
See Also:
AbstractFormComponent.rewindFormComponent(org.apache.tapestry.IMarkupWriter, org.apache.tapestry.IRequestCycle)

getValidatableFieldSupport

public abstract org.apache.tapestry.form.ValidatableFieldSupport getValidatableFieldSupport()
Injected.


getTranslatedFieldSupport

public abstract org.apache.tapestry.form.TranslatedFieldSupport getTranslatedFieldSupport()
Injected.


getAjaxWebRequest

public abstract AjaxWebRequest getAjaxWebRequest()
Injected ajax request


isRequired

public boolean isRequired()
Specified by:
isRequired in interface org.apache.tapestry.form.IFormComponent
Overrides:
isRequired in class org.apache.tapestry.form.AbstractFormComponent
See Also:
AbstractFormComponent.isRequired()