Web Application Framework Component Reference Guide
|
  
|
The DateTime View component is a visual display field component which displays the date whose fields (month, day, year, hour, minute, etc.) are represented by Combo Boxes. Also includes a javascript mini-calendar popup.
The DateTime View component is available from the component palette and is added to a Container View is the same way as other components. The DateTime View component displays the date and time portion of the value of its model field binding. A javascript mini-calendar popup can be configured with this component through the Show Mini-Calendar property. Two other configuration properties (Max/Min Year Choice Display Value) can be set to limit the size of the year field combo box. In the military time display format, two combo boxes are used to represent the hour and minute fields. In the standard time display format, three combo boxes are used to represent the hour, minute, and am/pm fields.
Property Name
|
Description
|
Notes
|
Model Reference
|
A reference to the model to which the visual component's bound model field belongs. This property must be configured before the Model Field Binding property can be configured.
|
Req
|
Model Field Binding
|
The model field to which the visual component is bound (where it stores/retrieves its value). The Model Reference property must be configured before this property can be configured.
|
Dependent on Model Reference
|
Name
|
The name of the component instance.
|
|
Max Year Choice Display Value
|
Specify the maximum year to display for the year field combo box.
|
Default is <current year> + 50
|
Min Year Choice Display Value
|
Specify the minimum year to display for the year field combo box.
|
Default is <current year> - 50
|
Show Mini-Calendar
|
Specify whether to display the button to invoke the mini-calendar popup.
|
Default is false.
|
Minute Interval Display
|
Specify the minute display increments in intervals of 1, 5, 10, 15, or 30 minutes.
|
Default is 1
|
Time Format
|
Specify whether the display format is in military time (24 hour clock) or standard time (12 hour clock).
|
Default is 12 hour
|
Web Application Framework Component Reference Guide
|
819-0725-10
|
  
|
Copyright © 2004, Sun Microsystems, Inc. All Rights Reserved.