January 2002
Intermediate to advanced
264 pages
8h 3m
English
javax.microedition.lcdui.AlertType
This class provides an indication of the nature of alerts. The alert
type allows the implementation to directly signal the user without
changing the current Displayable. The
playSound( ) method can be used to generate a
sound to alert the user. The predefined types of alerts are:
INFO
Provides non-threatening information to the user.
WARNING
Warns the user of a potentially dangerous operation.
ERROR
Alerts the user of a dangerous operation.
ALARM
Lets the user know of an event of which he previously requested to be notified.
CONFIRMATION
Confirms user action.
public classAlertType {// public class fields public static final AlertTypeALARM; public static final AlertTypeCONFIRMATION; public static final AlertTypeERROR; public static final AlertTypeINFO; public static final AlertTypeWARNING; // protected constructors protectedAlertType( ); // public instance methods public booleanplaySound(Display display); }
Read now
Unlock full access