The List class is a subclass of the Screen class. Like any other subclass of the Screen class, it, too, covers the entire displayable area of the device. It provides user interface by displaying a list of items to a user. The user can select an item from the list. The general syntax for creating a List object is as follows:
Here, the title parameter specifies the text to be displayed with an instance of the List class.
The listType parameter defines the type of list. It can be one of these types:
- EXCLUSIVE: It allows a user to select only one item at a time.
- IMPLICIT: It allows a user to select the currently focused item at the time of a command invocation.
- MULTIPLE: It allows a user to select more than one item at a time.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
