What is the Alert 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 Alert class?

Rating:

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.


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.