public class Notification extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Notification.NotificationTypeThe possible type of notification | 
| Modifier and Type | Field and Description | 
|---|---|
| protected String | _actionThe associated JS action | 
| protected String | _iconGlyphThe icon of the notification | 
| protected I18nizableText | _messageThe detailed message of the notification | 
| protected I18nizableText | _titleThe title of the notification | 
| protected Notification.NotificationType | _typeThe type of notification | 
| Constructor and Description | 
|---|
| Notification(Notification.NotificationType type,
            I18nizableText title,
            I18nizableText message,
            String iconGlyph,
            String action)Constructs a new notification. | 
| Modifier and Type | Method and Description | 
|---|---|
| Map<String,Object> | toMap()Gets the representation of a notification as a map | 
protected Notification.NotificationType _type
protected I18nizableText _title
protected I18nizableText _message
protected String _iconGlyph
public Notification(Notification.NotificationType type, I18nizableText title, I18nizableText message, String iconGlyph, String action)
type - The type of notificationtitle - The title of the notificationmessage - The detailed message (description) of the notification (can contain HTML)iconGlyph - The icon of the notificationaction - The JS action to execute when clicking on '<a>' elements of description