What is the List class?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the List class?
Rating:
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.
Rating:
Was this information helpful?
Other articles
- What is the RecordEnumeration interface?
- What is the getFilter() method?
- What is the Vector class?
- What is CLDC?
- What is the compare() method?