Lists

A list is a screen of choices. MIDP offers three list types: exclusive-choice, which allows the user to select one and only one element; multiple-choice, which allows the user to select zero or more elements; and implicit, which allows the user to select one element for a subsequent action. Screenshot shows the three list types.

Screenshot Exclusive-Choice, Multiple-Choice, and Implicit Lists

Java graphics 05fig01.gif


app Developer Responsibilities

MIDP Implementor Responsibilities

  • Abstract commands for the screen (not required for implicit lists)
  • Text associated with each element
  • Image, if any, for each element
  • Requested font, if any, for each element
  • Requested text handling (wrapped or not)
  • Preselected element or elements (a list-dependent number)
  • Default font and color
  • Text-display policy (wrapped, clipped, or scroll-through)
  • Element height
  • Default starting position of traversal highlight
  • How users traverse and scroll
  • How to indicate element selection
  • Legal image size for a list item
  • How users select an element
  • Giving the app a user's final selection


   
Comments