Exclusive-Choice Lists

An exclusive-choice list is a screen of choices that always has one, and only one, element selected.

app Developers

Strongly Recommend: Java graphics bulb1_icon.gif The minimum size of an exclusive-choice list is two elements.

Selection in an Exclusive-Choice List

A selection makes a highlighted item become On (selected) and any previously selected element become Off (not selected).

MIDP Implementors

Strongly Recommend: Java graphics bulb1_icon.gif Make sure an exclusive-choice list always has an element selected. Situations where the list will not have an element selected include when the app adds the first element to the list, provides all the list elements to the list constructor, or deletes the selected element. At these times, choose an element and select it. Do not display the list with no element selected.

app Developers

Strongly Recommend: Java graphics bulb1_icon.gif To have a particular element selected, set the selection explicitly, preferably before the list screen is visible. For example, set the selection immediately after creating the exclusive-choice list or just before deleting the currently selected element.

Abstract Commands on Exclusive-Choice List Screens

app Developers

Strongly Recommend: Java graphics bulb1_icon.gif Give exclusive-choice screens at least one abstract command. As shown in the left screen of Screenshot, an exclusive-choice screen needs an abstract command to handle the user's selection and move the user to another screen in the app.

Screenshot Exclusive-Choice Lists

Java graphics 05fig06.gif


Consider: Give exclusive-choice screens more than one abstract command so that users can either make a selection or move to another screen without making a choice. This applies the design consideration, "Make Everything Interruptible" on page 13.

For example, the right screen of Screenshot shows a screen with two abstract commands: one is type Screen (labeled Save) and the other is type Back (labeled Back). (See "Types of Abstract Commands" on page 166 for more information.) The abstract command with the Save label sets the coverage area to the chosen value and moves the user to another screen in the app. The abstract command with the Back label returns the user to the previous screen. If the screen contained only the abstract command labeled Save, users would be forced to choose a setting in order to move to another screen. The screen could have abstract commands for other tasks too.

Exclusive-Choice List Alternatives

app Developers

Consider: To enable users to choose among options on a form, use a choice group instead of an exclusive-choice list. See "Choice Groups" on page 116 for more information.

Consider: Use an implicit list instead of an exclusive-choice list if you want a screen that operates like a menu. See "Implicit Lists" on page 48 for more information.



   
Comments