info.informatica.ui.html.tag
Class FormDateField

java.lang.Object
  extended by info.informatica.doc.DocumentFragment
      extended by info.informatica.html.tag.HTMLTag
          extended by info.informatica.ui.html.tag.FormData
              extended by info.informatica.ui.html.tag.FormField
                  extended by info.informatica.ui.html.tag.FormDateField
All Implemented Interfaces:
info.informatica.doc.DocumentElement, info.informatica.html.tag.AttributeListener, info.informatica.html.tag.BodyTag, DataControl, DataValue, Comparable<info.informatica.doc.DocumentFragment>

public final class FormDateField
extends FormField

HTML form date field.

Author:
amengual at informatica dot info

Nested Class Summary
 
Nested classes/interfaces inherited from class info.informatica.doc.DocumentFragment
info.informatica.doc.DocumentFragment.FragmentComp, info.informatica.doc.DocumentFragment.NotFragmentComp
 
Constructor Summary
FormDateField(String tagid, ControlName nameattr, info.informatica.doc.FragmentPosition pos)
           
 
Method Summary
 DataField guessDataField()
          Try to guess the DataType from the default value, and return a temptative DataField representing this field.
 void init(DataField de)
          Inicializa el valor del campo
 void mapDataToUI(DataField de, Dataset ds, Map<String,Object> m)
           
 void setValue(javax.servlet.http.HttpServletRequest req)
          Set value(s) from HttpServletRequest.
 
Methods inherited from class info.informatica.ui.html.tag.FormField
getName, startTag
 
Methods inherited from class info.informatica.ui.html.tag.FormData
createField, createField, getAttributes, getControlName, getFieldname, getFieldSize, getFormat, getStringValues, getValue, mapInputField, setFieldname, setFormat, setValue, setValue, setValue, toString, toString
 
Methods inherited from class info.informatica.html.tag.HTMLTag
align, endTag, getAlignment, getBlockPosition, getId, getParent, getStyle, getStyleClass, getTagData, isSelfClosing, length, onAttributeRemoved, onAttributes, onAttributeStringSet, onDummyAttributes, setAttributes, setId, setParent, setSelfClosing, setSelfClosing, setTagData, setTagData, toString, toString, toXml, vAlign
 
Methods inherited from class info.informatica.doc.DocumentFragment
adjustWidth, compareTo, getCurrentPosition, getPosition, setPosition
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface info.informatica.html.tag.BodyTag
getStyle, getStyleClass
 

Constructor Detail

FormDateField

public FormDateField(String tagid,
                     ControlName nameattr,
                     info.informatica.doc.FragmentPosition pos)
Method Detail

init

public void init(DataField de)
          throws DataFieldException
Description copied from class: FormData
Inicializa el valor del campo

Specified by:
init in interface DataControl
Overrides:
init in class FormData
Throws:
DataFieldException

setValue

public void setValue(javax.servlet.http.HttpServletRequest req)
              throws DataFieldException
Set value(s) from HttpServletRequest.

Overrides:
setValue in class FormField
Parameters:
req - the request containing the form values
Throws:
DataFieldException - if an error occurs setting the values.

guessDataField

public DataField guessDataField()
Description copied from class: FormData
Try to guess the DataType from the default value, and return a temptative DataField representing this field.

Overrides:
guessDataField in class FormData
Returns:
a guessed DataField for this form field.

mapDataToUI

public void mapDataToUI(DataField de,
                        Dataset ds,
                        Map<String,Object> m)
                 throws DatasetException
Specified by:
mapDataToUI in interface DataControl
Overrides:
mapDataToUI in class FormData
Throws:
DatasetException