|
BenQ Mobile |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.lcdui.AlertType
The AlertType provides an indication of the nature of an Alert. Alerts are used by an application to present information to the user and wait before preceeding. An AlertType may also be used to directly signal the user without changing the display. The playSound method can be used to spontaneously generate a sound to alert the user. For example, a game using a Canvas can use playSound to indicate success or progress. The predefined types are INFORMATION, WARNING, ERROR, ALARM, and CONFIRMATION.
Field Summary | |
static AlertType |
ALARM
An ALARM AlertType is a hint to alert the user to an event for which the user has previously requested to be notified. |
static AlertType |
CONFIRMATION
A CONFIRMATION AlertType is a hint to confirm user actions. |
static AlertType |
ERROR
An ERROR AlertType is a hint to alert the user to an erroneous operation. |
static AlertType |
INFO
An INFO AlertType typically provides non-threatening information to the user. |
static AlertType |
WARNING
A WARNING AlertType is a hint to warn the user of a potentially dangerous operation. |
Constructor Summary | |
protected |
AlertType()
Protected constructor for subclasses. |
Method Summary | |
boolean |
playSound(Display display)
Alert the user by playing the sound for this AlertType. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final AlertType INFO
public static final AlertType WARNING
public static final AlertType ERROR
public static final AlertType ALARM
public static final AlertType CONFIRMATION
Constructor Detail |
protected AlertType()
Method Detail |
public boolean playSound(Display display)
display
- - to which the AlertType's sound should be played.
|
BenQ Mobile |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner. All Rights Reserved. BenQ Corp. is a trademark licensee of Siemens AG. |
For further information about Mobility Toolkit (MTK) visit our Developer Portal. |