| [ directory ] |
|
9.7 Alert TypesAll alerts can have an associated alert type, which the application developer can provide, to give the MIDP implementation an indication of the function of the alert. An alert type is a typesafe enumeration that has the following constants: INFO, WARNING, ERROR, ALARM, and CONFIRMATION, as described in the upcoming sections. Application Developers
MIDP Implementors
Another way to differentiate alert types is with images. (Many alerts in the upcoming figures have an image that reinforces its purpose.)
9.7.1 INFO Alert TypeThe INFO alert type is designed for providing nonthreatening information. In the MIDP Reference Implementation, there is no sound associated with an INFO alert. Figure 9.8 shows an INFO alert. Figure 9.8. An Alert with an INFO Alert Type
Application Developers
9.7.2 WARNING Alert TypesThe WARNING alert type is designed for informing the user about potentially dangerous operations. In the MIDP Reference Implementation, a WARNING alert plays a tone. Figure 9.9 shows a WARNING alert. Figure 9.9. An Alert with a WARNING Alert Type
Application Developers
9.7.3 ERROR Alert TypeThe ERROR alert type is designed for showing users error messages. In the MIDP Reference Implementation, an ERROR alert plays a tone. Figure 9.10 shows an ERROR alert. Figure 9.10. An Alert with an ERROR Alert Type
Application Developers
9.7.4 ALARM Alert TypeThe ALARM alert type is designed to alert users to events about which they had asked to be notified. In the MIDP Reference Implementation, an ALARM alert plays a tone. Figure 9.11 shows an alert with an ALARM alert type. Figure 9.11. An Alert with an ALARM Alert Type
Application Developers
9.7.5 CONFIRMATION Alert TypeThe CONFIRMATION alert type is designed to provide information so that a user can confirm that a particular event should occur. Figure 9.12 shows an alert with a CONFIRMATION alert type. Figure 9.12. An Alert with a CONFIRMATION Alert Type
Application Developers
|
| [ directory ] |
|