com.vaadin.ui
Interface NotificationConfiguration

All Superinterfaces:
java.io.Serializable

public interface NotificationConfiguration
extends java.io.Serializable

Provides methods for configuring the notification.

Since:
7.2
Author:
Vaadin Ltd

Method Summary
 java.lang.String getAssistivePostfix(Notification.Type type)
          Gets the accessibility postfix for a notification type.
 java.lang.String getAssistivePrefix(Notification.Type type)
          Gets the accessibility prefix for a notification type.
 com.vaadin.shared.ui.ui.NotificationRole getAssistiveRole(Notification.Type type)
          Gets the WAI-ARIA role for a notification type.
 void setAssistivePostfix(Notification.Type type, java.lang.String postfix)
          Sets the accessibility postfix for a notification type.
 void setAssistivePrefix(Notification.Type type, java.lang.String prefix)
          Sets the accessibility prefix for a notification type.
 void setAssistiveRole(Notification.Type type, com.vaadin.shared.ui.ui.NotificationRole role)
          Sets the WAI-ARIA role for a notification type.
 

Method Detail

setAssistivePrefix

void setAssistivePrefix(Notification.Type type,
                        java.lang.String prefix)
Sets the accessibility prefix for a notification type.

This prefix is read to assistive device users before the content of the notification, but not visible on the page.

Parameters:
type - type of the notification
prefix - string that is placed before the notification content

getAssistivePrefix

java.lang.String getAssistivePrefix(Notification.Type type)
Gets the accessibility prefix for a notification type.

This prefix is read to assistive device users before the content of the notification, but not visible on the page.

Parameters:
type - type of the notification
Returns:
The accessibility prefix for the provided notification type

setAssistivePostfix

void setAssistivePostfix(Notification.Type type,
                         java.lang.String postfix)
Sets the accessibility postfix for a notification type.

This postfix is read to assistive device users after the content of the notification, but not visible on the page.

Parameters:
type - type of the notification
postfix - string that is placed after the notification content

getAssistivePostfix

java.lang.String getAssistivePostfix(Notification.Type type)
Gets the accessibility postfix for a notification type.

This postfix is read to assistive device users after the content of the notification, but not visible on the page.

Parameters:
type - type of the notification
Returns:
The accessibility postfix for the provided notification type

setAssistiveRole

void setAssistiveRole(Notification.Type type,
                      com.vaadin.shared.ui.ui.NotificationRole role)
Sets the WAI-ARIA role for a notification type.

This role defines how an assistive device handles a notification. Available roles are alert and status (@see Roles Model). The default role is alert.

Parameters:
type - type of the notification
role - role to set for the notification type

getAssistiveRole

com.vaadin.shared.ui.ui.NotificationRole getAssistiveRole(Notification.Type type)
Gets the WAI-ARIA role for a notification type.

This role defines how an assistive device handles a notification. Available roles are alert and status (@see Roles Model)

The default role is alert.

Parameters:
type - type of the notification
Returns:
role to set for the notification type


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.