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:

List l=new List(java.lang.String title, int listType)

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.
Note: A List object does not support POPUP type.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.