站内搜索: 请输入搜索关键词
当前页面: 图书首页 > MIDP Style Guide for the Java 2 Platform, Micro Edition

MIDP Style Guide for the Java 2 Platform, Micro Edition

[ directory ] Previous Section Next Section

8.7 Dates and Times

A date field is an item that presents an editable date, time, or both to the user. All date fields are editable. Figure 8.11 shows a date field that presents a date and time to the user.

Figure 8.11. A Date Field on a Form

graphics/08fig11.gif

Application Developer Responsibilities

MIDP Implementor Responsibilities

  • Any label text

  • Any initial value of the field

  • Type of date field to use (date, time, or both)

  • Presentation of the date and time

  • Presentation of an uninitialized date field

  • How users enter and edit the date, time, or both

Application Developers

Consider: You can change the contents of a date field or its label as needed. Try to do it only when the form is not visible or in response to a user action. Arbitrary changes to visible screens are confusing to users.

MIDP Implementors

Consider: Determine whether you will have users edit the date and time values on the form, or on a separate screen. Figure 8.12 shows a date and a time ready for editing off the form.

Figure 8.12. Editing a Date Field on a Separate Screen

graphics/08fig12.gif

    [ directory ] Previous Section Next Section