tailieunhanh - Core J2ME™ Technology & MIDP phần 7

Có tổng cộng năm ưu tiên mà chúng ta có thể lựa chọn. Bất cứ nơi nào từ "Hôm nay" "Một ngày nào đó" (xem hình 12-4). Hình 12-4. Ưu tiên lựa chọnNhóm trở lại hình 12-2 và chọn tùy chọn "Tuỳ chọn" từ trình đơn, chúng tôi sẽ được trình bày với màn hình như thể hiện trong hình 12-5. | Simpo PDF Merge and Split Unregistered Version - http If you choose to add a new item to your todo list the screen shown in Figure 12-3 will appear. There is just enough detail on the display to make out that this screen consists of a Form with a TextField and ChoiceGroup. Figure 12-3. Add todo item Form containing a TextField and ChoiceGroup There are a total of five priorities that we can choose from. Anywhere from Today to Someday see Figure 12-4 . Figure 12-4. Priority selection 323 Simpo PDF Merge and Split Unregistered Version - http Heading back to Figure 12-2 and selecting the Preferences option from the menu we will be presented with the screen as shown in Figure 12-5. Here we choose whether or not we would like the items sorted by priority if not they appear in the order entered . We can also opt to have priorities listed next to each item. Figure 12-5. Select application preferences A couple of thoughts if you look back at Figure 12-1 on the right you ll notice that priorities are shown as integers. However if you look at Figure 12-4 you ll see that priority selection is done using a text string. I found it much more intuitive to enter priorities by selecting from options that closely match how I think. That is this must be done today that can wait until tomorrow and so forth. When I write a todo list on paper and pencil I generally list them from most important to least. And no I don t assign them numbers but it generally works out to the same as shown here. That is most important on top least important at the bottom. Obviously due to constraints of the display we can t show the priority text next to each item thus internally we track them as numbers and this is what we display on the list. 324 Simpo PDF Merge and Split Unregistered Version - http Interface Design One of the beauties of the MIDP is its simplicity. You can quickly get your hands around the components and have a good sense of just what .

TỪ KHÓA LIÊN QUAN