<DATE> : Input Field of Date Type

Java class : leon.view.LyDate

ROLE

An input field of Date type allows displaying a graphical component allowing to input or to consult date and/or hour.
It does not comprise any element.
It is possible to specify the type of the date as well as the display format.

ATTRIBUTES

<!ATTLIST DATE
	  id NMTOKEN #IMPLIED
	  template NMTOKEN #IMPLIED
	  label CDATA #IMPLIED
	  type ( DATE_TIME | DATE_HOUR_MIN | DATE | TIME | HOUR_MIN) "DATE_TIME"
	  format CDATA #IMPLIED
	  bean CDATA #IMPLIED
	  font CDATA #IMPLIED
	  color CDATA #IMPLIED
	  fontColor CDATA #IMPLIED
	  nCols NMTOKEN #IMPLIED
	  disabledColor CDATA #IMPLIED
	  arrows ( true | false) "true"
	  arrowUp CDATA #IMPLIED
	  arrowDown CDATA #IMPLIED
	  arrowDownBig CDATA #IMPLIED>
Attribute Mand. Description Default
id no DATE.id  
template no DATE.template  
label no Value displayed for the date.  
type no Type.
This type determines the components managed in the date field.
The following types are managed:
DATE_TIME: Month-day-year-hour-minutes-seconds
DATE_HOUR_MIN: Month-day -year-hour-minutes
DATE: Day-month-year
TIME: Hour-minutes-seconds
HOUR_MIN: Minutes-seconds
HOUR: Hour
DATE_TIME
format no Display format.
The syntax of the display format is the one specified by the java.text.SimpleDateFormat class (see the corresponding Java documentation). The default display format for US English is: MM/dd/yyyy hh:mm:ss.
 
bean no Allows specifying the name of a Java class that replaces the default graphical component.  
font no DATE.font  
color no DATE.color  
fontColor no DATE.fontColor  
nCols no Gives the number of columns of the date (given in number of characters). -1
disabledColor no DATE.disabledColor  
arrows no DATE.arrows true
arrowUp no DATE.arrowUp  
arrowDown no DATE.arrowDown  
arrowDownBig no DATE.arrowDownBig  

SAMPLE

<DATE label="12.08.2000 21:12:00" type="DATE_TIME" format="MM.dd.yyyy hh:mm:ss"/>

<DATE label="07:54" type="HOUR_MIN" format="hh:mm"/>