public class Notification extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Notification.NotificationType
The possible type of notification
|
Modifier and Type | Field and Description |
---|---|
protected String |
_action
The associated JS action
|
protected String |
_iconGlyph
The icon of the notification
|
protected I18nizableText |
_message
The detailed message of the notification
|
protected I18nizableText |
_title
The title of the notification
|
protected Notification.NotificationType |
_type
The 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