|
MIDP3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.microedition.lcdui.NotificationType
public final class NotificationType
Represents the Notification type (or category) used for
grouping, sorting and filtering Notification
objects of the same type.
A NotificationType can either be a user defined type, or a standard type (defined as constant
fields in this class). Notifications associated with any of the standard types are not required to
have a label and image.
The primary purpose of notification types is to make it possible
for implementations to group, sort and filter notifications.
Additionally, the standard notification types enable
localization of Notification
labels and/or images.
Note that some standard notification types might not be available for all security domains, depending on the security policy enforced by the implementation.
An implementation MAY :Notification types have a default image and label associated with the posted Notification. An application can choose to set its own label and/or image for the posted Notification, which will override the default label and/or image. The default label of a standard Notification type SHOULD support localization.
Field Summary | |
---|---|
static NotificationType |
CALL
The standard notification type for missed calls. |
static NotificationType |
EMAIL
The standard notification type for email messages. |
static NotificationType |
IM
The standard notification type for instant messaging messages. |
static NotificationType |
MMS
The standard notification type for mms messages. |
static NotificationType |
REMINDER
The standard notification type for reminders (typically calendar reminders, or task reminders). |
static NotificationType |
SMS
The standard notification type for sms messages. |
Constructor Summary | |
---|---|
NotificationType(java.lang.String defaultLabel,
Image defaultImage)
Creates a new user defined NotificationType |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final NotificationType CALL
public static final NotificationType IM
public static final NotificationType EMAIL
public static final NotificationType MMS
public static final NotificationType SMS
public static final NotificationType REMINDER
Constructor Detail |
---|
public NotificationType(java.lang.String defaultLabel, Image defaultImage)
NotificationType
defaultLabel
- The default label of this notification type. This label will be
used for associated notifications, if no label is set on the
notification.defaultImage
- The default image of this notification type. This image will be
used for associated notifications, if no image is set on the
notification. If the image is mutable, a snapshot of it will be taken.
java.lang.NullPointerException
- if defaultLabel
or defaultImage
is null
|
MIDP3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |