Save up to 35%

What is the Alert class?

February 29th, 2008 by uCertify Leave a reply »

The Alert class is a subclass of the Screen class. It provides user interface. The main function of the Alert class is to inform a user about any errors or exceptions. It has the following two constructors:

Alert(String Title): It creates an empty Alert instance with a specified label or caption.

Alert(String Title, String Alert text, Image Alert type, AlertType A): It creates an Alert instance with the following parameters:

  • Title: It specifies the label or caption for an instance of the Alert class.
  • Alert text: It displays the alert message.
  • Alert type: It specifies an image to be displayed with the specified message. It is an optional parameter.
  • A: It specifies one of the AlertType constants such as WARNING, INFO, etc.

The instance of the Alert class is made available to a user by passing it as an argument to the setCurrent() method.

Become SUN SCMAD certified. Become SUN SCMAD Mobile Application Developer certified.
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.