What is the List class?

March 7th, 2008 by uCertify Leave a reply »

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.

Best exam simulation SUN scmad download free trial. Download free practice test for CX310-110 SCMAD Mobile Application Developer exam.
Like this article? Share it with others
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.
  • Share/Bookmark
Advertisement

Leave a Reply

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