| Package | Description |
|---|---|
| com.vaadin.ui |
| Modifier and Type | Field and Description |
|---|---|
static Notification.Type |
Notification.TYPE_ERROR_MESSAGE
Deprecated.
|
static Notification.Type |
Notification.TYPE_HUMANIZED_MESSAGE
Deprecated.
|
static Notification.Type |
Notification.TYPE_TRAY_NOTIFICATION
Deprecated.
|
static Notification.Type |
Notification.TYPE_WARNING_MESSAGE
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static Notification.Type |
Notification.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Notification.Type[] |
Notification.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
String |
NotificationConfiguration.getAssistivePostfix(Notification.Type type)
Gets the accessibility postfix for a notification type.
|
String |
NotificationConfiguration.getAssistivePrefix(Notification.Type type)
Gets the accessibility prefix for a notification type.
|
NotificationRole |
NotificationConfiguration.getAssistiveRole(Notification.Type type)
Gets the WAI-ARIA role for a notification type.
|
void |
NotificationConfiguration.setAssistivePostfix(Notification.Type type,
String postfix)
Sets the accessibility postfix for a notification type.
|
void |
NotificationConfiguration.setAssistivePrefix(Notification.Type type,
String prefix)
Sets the accessibility prefix for a notification type.
|
void |
NotificationConfiguration.setAssistiveRole(Notification.Type type,
NotificationRole role)
Sets the WAI-ARIA role for a notification type.
|
static Notification |
Notification.show(String caption,
Notification.Type type)
Shows a notification message the current page.
|
static Notification |
Notification.show(String caption,
String description,
Notification.Type type)
Shows a notification message the current page.
|
void |
UI.showNotification(String caption,
Notification.Type type)
Deprecated.
As of 7.0, use Notification.show instead but be aware that
Notification.show does not allow HTML.
|
void |
UI.showNotification(String caption,
String description,
Notification.Type type)
Deprecated.
As of 7.0, use new Notification(...).show(Page) instead but
be aware that HTML by default not allowed.
|
void |
UI.showNotification(String caption,
String description,
Notification.Type type,
boolean htmlContentAllowed)
Deprecated.
As of 7.0, use new Notification(...).show(Page).
|
| Constructor and Description |
|---|
Notification(String caption,
Notification.Type type)
Creates a notification message of the specified type.
|
Notification(String caption,
String description,
Notification.Type type)
Creates a notification message of the specified type, with a bigger
caption and smaller description.
|
Notification(String caption,
String description,
Notification.Type type,
boolean htmlContentAllowed)
Creates a notification message of the specified type, with a bigger
caption and smaller description.
|
Copyright © 2021 Vaadin Ltd. All rights reserved.