C H A P T E R  26

Time View

The Time View component is a visual display field component which displays the time whose fields (hour, minute, etc.) are represented by Combo Boxes.

The Time View component is available from the component palette and is added to a Container View is the same way as other components. The Time View component displays the time portion of the value of its model field binding. 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.

 

Visible

Controls whether the component will be displayed or not. Can also be set programmatically using the component's setVisible(boolean) method.

 

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.