|
||||||||||
| 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.DateField
public abstract class DateField
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.
ValidField| Field Summary |
|---|
| Fields inherited from class org.apache.tapestry.AbstractComponent |
|---|
_clientId |
| Constructor Summary | |
|---|---|
DateField()
|
|
| Method Summary | |
|---|---|
abstract Date |
getDate()
|
abstract String |
getDisplayFormat()
|
abstract DateFormat |
getFormat()
|
abstract Date |
getMaximum()
|
abstract Date |
getMinimum()
|
org.apache.tapestry.valid.IValidator |
getValidator()
Overrides ValidField.getValidator()to construct a validator on-the-fly. |
Object |
getValue()
|
abstract boolean |
isRequired()
|
abstract void |
setDate(Date date)
|
void |
setValue(Object value)
|
| Methods inherited from class org.apache.tapestry.valid.ValidField |
|---|
getDisplayName, isDisabled, isHidden, readValue, renderFormComponent, rewindFormComponent, updateValue |
| Methods inherited from class org.apache.tapestry.form.AbstractFormComponent |
|---|
getCanTakeFocus, getForm, getIdParameter, getName, getRenderBodyOnRewind, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, renderIdAttribute, setClientId, setForm, setName, setName |
| Methods inherited from class org.apache.tapestry.AbstractComponent |
|---|
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString, triggerEvent |
| 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.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, 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 |
|---|
public DateField()
| Method Detail |
|---|
public abstract Date getDate()
public abstract void setDate(Date date)
public abstract Date getMinimum()
public abstract Date getMaximum()
public abstract boolean isRequired()
isRequired in interface org.apache.tapestry.form.IFormComponentisRequired in class org.apache.tapestry.form.AbstractFormComponentpublic abstract DateFormat getFormat()
public abstract String getDisplayFormat()
public org.apache.tapestry.valid.IValidator getValidator()
ValidField.getValidator()to construct a validator on-the-fly.
getValidator in class org.apache.tapestry.valid.ValidFieldpublic Object getValue()
getValue in class org.apache.tapestry.valid.ValidFieldValidField.getValue()public void setValue(Object value)
setValue in class org.apache.tapestry.valid.ValidFieldValidField.setValue(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||