Lists

Because screen size is limited, lists are the most common basic UI widget on devices. A List presents the user with a group of items displayed in a single column. The set of elements is rendered using a ListCellRenderer and is extracted using the ListModel. Swing's Model/View/Controller architecture (MVC) makes it possible for a list to represent many UI concepts ranging from a carousel to a To-Do checklist. A list component is relatively simple. It invokes the model in order to extract the displayed or selected information, and invokes the cell renderer to show it to the user. The list class itself is completely decoupled from everything, so you can extract its content from any source (for example, the network, storage, etc.) and display the information in any form (for example, Checkboxes, Strings, Icons, and so forth).

Section Custom list types introduces typical Series 40 lists implemented with LWUIT. Note that some of them have actually been implemented as a Form instead of a List for a desired interaction pattern.